home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Przegladarki internetowe / Mozilla Seamonkey 1.0.5 pl / seamonkey-1.0.5.pl-PL.win32.installer.exe / MAIL.XPI / bin / chrome / messenger.jar / content / messenger / mailWindowOverlay.xul < prev    next >
Encoding:
Extensible Markup Language  |  2006-03-17  |  103.9 KB  |  1,970 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- ***** BEGIN LICENSE BLOCK *****
  4.  Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5.  
  6.  The contents of this file are subject to the Mozilla Public License Version
  7.  1.1 (the "License"); you may not use this file except in compliance with
  8.  the License. You may obtain a copy of the License at
  9.  http://www.mozilla.org/MPL/
  10.  
  11.  Software distributed under the License is distributed on an "AS IS" basis,
  12.  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.  for the specific language governing rights and limitations under the
  14.  License.
  15.  
  16.  The Original Code is Mozilla Communicator client code, released
  17.  March 31, 1998.
  18.  
  19.  The Initial Developer of the Original Code is
  20.  Netscape Communications Corporation.
  21.  Portions created by the Initial Developer are Copyright (C) 1998-1999
  22.  the Initial Developer. All Rights Reserved.
  23.  
  24.  Contributor(s):
  25.   Neil Rashbrook <neil@parkwaycc.co.uk>
  26.   Ian Neal <iann_bugzilla@arlen.demon.co.uk>
  27.  
  28.  Alternatively, the contents of this file may be used under the terms of
  29.  either of the GNU General Public License Version 2 or later (the "GPL"),
  30.  or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  31.  in which case the provisions of the GPL or the LGPL are applicable instead
  32.  of those above. If you wish to allow use of your version of this file only
  33.  under the terms of either the GPL or the LGPL, and not to allow others to
  34.  use your version of this file under the terms of the MPL, indicate your
  35.  decision by deleting the provisions above and replace them with the notice
  36.  and other provisions required by the GPL or the LGPL. If you do not delete
  37.  the provisions above, a recipient may use your version of this file under
  38.  the terms of any one of the MPL, the GPL or the LGPL.
  39.  
  40.  ***** END LICENSE BLOCK ***** -->
  41.  
  42. <?xml-stylesheet href="chrome://messenger/skin/folderMenus.css" type="text/css"?>
  43.  
  44. <?xul-overlay href="chrome://global/content/charsetOverlay.xul"?>
  45. <?xul-overlay href="chrome://communicator/content/contentAreaContextOverlay.xul"?>
  46. <?xul-overlay href="chrome://communicator/content/viewZoomOverlay.xul"?>
  47. <?xul-overlay href="chrome://messenger/content/mailWindowExtrasOverlay.xul"?>
  48. <?xul-overlay href="chrome://messenger/content/msgHdrViewOverlay.xul"?>
  49. <?xul-overlay href="chrome://messenger/content/platformMailnewsOverlay.xul"?>
  50.  
  51. <!DOCTYPE overlay [
  52. <!ENTITY % messengerDTD SYSTEM "chrome://messenger/locale/messenger.dtd" >
  53. %messengerDTD;
  54. <!ENTITY % msgHdrViewPopupDTD SYSTEM "chrome://messenger/locale/msgHdrViewPopup.dtd" >
  55. %msgHdrViewPopupDTD;
  56. <!ENTITY % contentAreaCommandsDTD SYSTEM "chrome://communicator/locale/contentAreaCommands.dtd" >
  57. %contentAreaCommandsDTD;
  58. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  59. %brandDTD;
  60. ]>  
  61.  
  62. <overlay
  63.   xmlns:nc="http://home.netscape.com/NC-rdf#"
  64.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  65.  
  66. <script type="application/x-javascript" src="chrome://messenger/content/mailCommands.js"/>
  67. <script type="application/x-javascript" src="chrome://messenger/content/mailWindowOverlay.js"/>
  68. <script type="application/x-javascript" src="chrome://messenger/content/mail-offline.js"/>
  69. <script type="application/x-javascript" src="chrome://communicator/content/findUtils.js"/>
  70. <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarks.js"/>
  71. <script type="application/x-javascript" src="chrome://communicator/content/printing.js"/>
  72.  
  73. <stringbundleset id="stringbundleset">
  74.   <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
  75.   <stringbundle id="bundle_offlinePrompts" src="chrome://messenger/locale/offline.properties"/>
  76.   <stringbundle id="bundle_viewZoom"/>
  77.   <stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
  78. </stringbundleset>
  79.  
  80. <!-- Performance optimization...we include utilityOverlay.xul which defines some command sets
  81.      which are updated based on events like focus and select. We have our own custom events
  82.      which we use to optmize when we do command updating. To avoid unnecessary command updating,
  83.      we are going to override the events the global edit menu items and select edit menu items
  84.      are updated on with events of our own controlling. 
  85.  -->
  86.  
  87. <commandset id="globalEditMenuItems"
  88.             commandupdater="true"
  89.             events="create-menu-edit"
  90.             oncommandupdate="goUpdateGlobalEditMenuItems()"/>
  91. <commandset id="selectEditMenuItems"
  92.             commandupdater="true"
  93.             events="create-menu-edit"
  94.             oncommandupdate="goUpdateSelectEditMenuItems()"/>
  95.  
  96. <!-- End command set merging -->
  97.  
  98. <commandset id="mailDownloadCommands">
  99.   <command id="cmd_downloadFlagged" oncommand="goDoCommand('cmd_downloadFlagged')"/>
  100.   <command id="cmd_downloadSelected" oncommand="goDoCommand('cmd_downloadSelected')"/>
  101. </commandset>
  102.  
  103. <commandset id="mailFileMenuItems"
  104.             commandupdater="true"
  105.             events="create-menu-file"
  106.             oncommandupdate="goUpdateMailMenuItems(this)">
  107.  
  108.     <command id="cmd_getNewMessages" oncommand="goDoCommand('cmd_getNewMessages')" disabled="true"/>
  109.     <command id="cmd_close" oncommand="goDoCommand('cmd_close')"/>
  110.     <command id="cmd_open" oncommand="goDoCommand('cmd_open')"/>
  111.     
  112.     <command id="cmd_file" disabled="true"/>
  113.  
  114.     <command id="cmd_emptyTrash" oncommand="goDoCommand('cmd_emptyTrash')" disabled="true"/>
  115.     <command id="cmd_compactFolder" oncommand="goDoCommand('cmd_compactFolder')" disabled="true"/>
  116.     <command id="cmd_synchronizeOffline" oncommand="goDoCommand('cmd_synchronizeOffline')" disabled="true"/>
  117.     <commandset id="mailDownloadCommands"/>
  118.     <command id="cmd_settingsOffline" oncommand="goDoCommand('cmd_settingsOffline')" disabled="true"/>
  119.     
  120.     <command id="cmd_printSetup" oncommand="goDoCommand('cmd_printSetup')" disabled="true"/>
  121.     <command id="cmd_print" oncommand="goDoCommand('cmd_print')" disabled="true"/>
  122.     <command id="cmd_printpreview" oncommand="goDoCommand('cmd_printpreview')" disabled="true"/>
  123.     <command id="cmd_saveAsFile" oncommand="goDoCommand('cmd_saveAsFile')" disabled="true"/>
  124.     <command id="cmd_saveAsTemplate" oncommand="goDoCommand('cmd_saveAsTemplate')" disabled="true"/>    
  125.     <command id="cmd_getNextNMessages" oncommand="goDoCommand('cmd_getNextNMessages')" disabled="true"/>
  126.     <command id="cmd_renameFolder" oncommand="goDoCommand('cmd_renameFolder')" />
  127.     <command id="cmd_sendUnsentMsgs" oncommand="goDoCommand('cmd_sendUnsentMsgs')" />
  128. </commandset>
  129.  
  130. <commandset id="mailCommands">
  131.   <command id="cmd_newNavigator"/>
  132.   <command id="cmd_newEditor"/>
  133.   <command id="cmd_quit"/>
  134.   <command id="cmd_createFilterFromPopup" oncommand="goDoCommand('cmd_createFilterFromPopup')"/>
  135.   <command id="cmd_pageSetup"/>
  136. </commandset>
  137. <commandset id="mailViewMenuItems"
  138.             commandupdater="true"
  139.             events="create-menu-view"
  140.             oncommandupdate="goUpdateMailMenuItems(this)">
  141.  
  142.    <command id="cmd_viewPageSource" oncommand="goDoCommand('cmd_viewPageSource')" disabled="true"/>
  143.    <command id="cmd_setFolderCharset" oncommand="goDoCommand('cmd_setFolderCharset')" />
  144.    <command id="cmd_reload" oncommand="goDoCommand('cmd_reload')" disabled="true"/>
  145.  
  146.    <command id="cmd_expandAllThreads" oncommand="goDoCommand('cmd_expandAllThreads')" disabled="true"/>
  147.    <command id="cmd_collapseAllThreads" oncommand="goDoCommand('cmd_collapseAllThreads')" disabled="true"/>
  148.    <command id="cmd_viewAllMsgs" oncommand="goDoCommand('cmd_viewAllMsgs')" disabled="true"/>
  149.    <command id="cmd_viewUnreadMsgs" oncommand="goDoCommand('cmd_viewUnreadMsgs')" disabled="true"/>
  150.    <command id="cmd_viewThreadsWithUnread" oncommand="goDoCommand('cmd_viewThreadsWithUnread')" disabled="true"/>
  151.    <command id="cmd_viewWatchedThreadsWithUnread" oncommand="goDoCommand('cmd_viewWatchedThreadsWithUnread')" disabled="true"/>
  152.    <command id="cmd_viewIgnoredThreads" oncommand="goDoCommand('cmd_viewIgnoredThreads')" disabled="true"/>
  153.    <commandset id="viewZoomCommands"/>
  154. </commandset>
  155.  
  156. <commandset id="mailEditMenuItems"
  157.             commandupdater="true"
  158.             events="create-menu-edit"
  159.             oncommandupdate="goUpdateMailMenuItems(this)">
  160.  
  161.   <command id="cmd_undo"
  162.          valueDeleteMsg="&undoDeleteMsgCmd.label;"
  163.          valueMoveMsg="&undoMoveMsgCmd.label;"
  164.          valueCopyMsg="&undoCopyMsgCmd.label;"
  165.          valueDefault="&undoDefaultCmd.label;"/>
  166.   <command id="cmd_redo"
  167.          valueDeleteMsg="&redoDeleteMsgCmd.label;"
  168.          valueMoveMsg="&redoMoveMsgCmd.label;"
  169.          valueCopyMsg="&redoCopyMsgCmd.label;"
  170.          valueDefault="&redoDefaultCmd.label;"/>
  171.   <command id="cmd_cut"/>
  172.   <command id="cmd_copy"/>
  173.   <command id="cmd_paste"/>
  174.   <command id="cmd_delete"
  175.          valueFolder="&deleteFolderCmd.label;"
  176.          valueFolderAccessKey="&deleteFolderCmd.accesskey;"
  177.          valueNewsgroup="&unsubscribeNewsgroupCmd.label;"
  178.          valueNewsgroupAccessKey="&unsubscribeNewsgroupCmd.accesskey;"
  179.          valueMessage="&deleteMsgCmd.label;"
  180.          valueMessageAccessKey="&deleteMsgCmd.accesskey;"
  181.          valueIMAPDeletedMessage="&undeleteMsgCmd.label;"
  182.          valueIMAPDeletedMessageAccessKey="&undeleteMsgCmd.accesskey;"
  183.          valueNewsMessage="&cancelNewsMsgCmd.label;"
  184.          valueNewsMessageAccessKey="&cancelNewsMsgCmd.accesskey;"
  185.          valueMessages="&deleteMsgsCmd.label;"
  186.          valueMessagesAccessKey="&deleteMsgsCmd.accesskey;"
  187.          valueIMAPDeletedMessages="&undeleteMsgsCmd.label;"
  188.          valueIMAPDeletedMessagesAccessKey="&undeleteMsgsCmd.accesskey;"
  189.          valueNewsMessages="&cancelNewsMsgsCmd.label;"
  190.          valueNewsMessagesAccessKey="&cancelNewsMsgsCmd.accesskey;"/>
  191.   <command id="cmd_selectAll"/>
  192.   <command id="cmd_selectThread" oncommand="goDoCommand('cmd_selectThread')"/>
  193.   <command id="cmd_selectFlagged" oncommand="goDoCommand('cmd_selectFlagged')"/>
  194.   <command id="cmd_properties" oncommand="goDoCommand('cmd_properties')"
  195.          valueNewsgroup="&folderPropsNewsgroupCmd.label;"
  196.          valueFolder="&folderPropsFolderCmd.label;"
  197.          valueGeneric="&folderPropsCmd.label;"/>
  198.   <command id="cmd_find" oncommand="goDoCommand('cmd_find')" disabled="true"/>
  199.   <command id="cmd_findAgain" oncommand="goDoCommand('cmd_findAgain')" disabled="true"/>
  200.   <command id="cmd_findPrev"  oncommand="goDoCommand('cmd_findPrev')"  disabled="true"/>
  201.   <command id="cmd_findTypeText"/>
  202.   <command id="cmd_findTypeLinks"/>
  203.   <command id="cmd_stop" oncommand="MsgStop();"/>
  204. </commandset>
  205.  
  206. <commandset id="mailEditContextMenuItems">
  207.   <command id="cmd_copyLink"/>
  208.   <command id="cmd_copyImage"/>
  209. </commandset>
  210.  
  211. <commandset id="mailGoMenuItems"
  212.             commandupdater="true"
  213.             events="create-menu-go"
  214.             oncommandupdate="goUpdateMailMenuItems(this)">
  215.  
  216.   <command id="cmd_nextMsg" oncommand="goDoCommand('cmd_nextMsg')" disabled="true"/>
  217.   <command id="cmd_nextUnreadMsg" oncommand="goDoCommand('cmd_nextUnreadMsg')" disabled="true"/>
  218.   <command id="cmd_nextFlaggedMsg" oncommand="goDoCommand('cmd_nextFlaggedMsg')" disabled="true"/>
  219.   <command id="cmd_nextUnreadThread" oncommand="goDoCommand('cmd_nextUnreadThread')" disabled="true"/>
  220.   <command id="cmd_previousMsg" oncommand="goDoCommand('cmd_previousMsg')" disabled="true"/>
  221.   <command id="cmd_previousUnreadMsg" oncommand="goDoCommand('cmd_previousUnreadMsg')" disabled="true"/>
  222.   <command id="cmd_previousFlaggedMsg" oncommand="goDoCommand('cmd_previousFlaggedMsg')" disabled="true"/>
  223.   <command id="cmd_goStartPage" oncommand="goDoCommand('cmd_goStartPage');"/>
  224. </commandset>
  225.  
  226. <commandset id="mailMessageMenuItems"
  227.             commandupdater="true"
  228.             events="create-menu-message"
  229.             oncommandupdate="goUpdateMailMenuItems(this)">
  230.   <command id="cmd_reply" oncommand="goDoCommand('cmd_reply')"/>
  231.   <command id="cmd_replySender" oncommand="goDoCommand('cmd_replySender')"/>
  232.   <command id="cmd_replyGroup" oncommand="goDoCommand('cmd_replyGroup')"/>
  233.   <command id="cmd_replyall" oncommand="goDoCommand('cmd_replyall')"/>
  234.   <command id="cmd_forward" oncommand="goDoCommand('cmd_forward')"/>
  235.   <command id="cmd_forwardInline" oncommand="goDoCommand('cmd_forwardInline')"/>
  236.   <command id="cmd_forwardAttachment" oncommand="goDoCommand('cmd_forwardAttachment')"/>
  237.   <command id="cmd_editAsNew" oncommand="goDoCommand('cmd_editAsNew')"/>
  238.   <commandset id="mailDownloadCommands"/>
  239.   <command id="cmd_openMessage" oncommand="goDoCommand('cmd_openMessage')"/>
  240.   <command id="cmd_createFilterFromMenu" oncommand="goDoCommand('cmd_createFilterFromMenu')"/>
  241.   <command id="cmd_killThread" oncommand="goDoCommand('cmd_killThread')"/>
  242.   <command id="cmd_watchThread" oncommand="goDoCommand('cmd_watchThread')"/>
  243.  
  244. </commandset>
  245.  
  246. <commandset id="mailToolbarItems"
  247.             commandupdater="true"
  248.             events="mail-toolbar"
  249.             oncommandupdate="goUpdateMailMenuItems(this)">
  250.   
  251.   <command id="button_reply"/>
  252.   <command id="button_replyall"/>
  253.   <command id="button_forward"/>
  254.   <command id="button_delete"/>
  255.   <command id="button_mark"/>
  256.   <command id="button_getNewMessages"/>
  257.   <command id="button_print"/>
  258.   <command id="button_next"/>
  259.   <command id="button_file"/>
  260.   <command id="cmd_delete"/>
  261.   <command id="button_junk"/>
  262. </commandset>
  263.  
  264.  
  265. <commandset id="mailGetMsgMenuItems"
  266.             commandupdater="true"
  267.             events="create-menu-getMsgToolbar,create-menu-file"
  268.             oncommandupdate="goUpdateMailMenuItems(this)">
  269.  
  270.     <command id="cmd_getMsgsForAuthAccounts" 
  271.              oncommand="goDoCommand('cmd_getMsgsForAuthAccounts'); event.preventBubble()" 
  272.              disabled="true"/>
  273. </commandset>
  274.  
  275. <commandset id="mailMarkMenuItems"
  276.               commandupdater="true"
  277.               events="create-menu-mark"
  278.               oncommandupdate="goUpdateMailMenuItems(this)">
  279.  
  280.     <command id="cmd_markAsRead" oncommand="goDoCommand('cmd_markAsRead'); event.preventBubble()" disabled="true"/>
  281.     <command id="cmd_markAllRead" oncommand="goDoCommand('cmd_markAllRead'); event.preventBubble()" disabled="true"/>
  282.     <command id="cmd_markThreadAsRead" oncommand="goDoCommand('cmd_markThreadAsRead'); event.preventBubble()" disabled="true"/>
  283.     <command id="cmd_markReadByDate" oncommand="goDoCommand('cmd_markReadByDate');" disabled="true"/>
  284.     <command id="cmd_markAsFlagged" oncommand="goDoCommand('cmd_markAsFlagged'); event.preventBubble()" disabled="true"/>
  285.     <command id="cmd_markAsJunk" oncommand="goDoCommand('cmd_markAsJunk'); event.preventBubble()" disabled="true"/>
  286.     <command id="cmd_markAsNotJunk" oncommand="goDoCommand('cmd_markAsNotJunk'); event.preventBubble()" disabled="true"/>
  287.     <command id="cmd_recalculateJunkScore" oncommand="goDoCommand('cmd_recalculateJunkScore');" disabled="true"/>
  288.     <command id="cmd_markAsNotPhish" oncommand="goDoCommand('cmd_markAsNotPhish'); event.preventBubble()" disabled="true"/>
  289. </commandset>
  290.  
  291. <commandset id="mailLabelMenuItems"
  292.               commandupdater="true"
  293.               events="create-menu-label"
  294.               oncommandupdate="goUpdateMailMenuItems(this)">
  295.  
  296.     <command id="cmd_label0" oncommand="goDoCommand('cmd_label0');" disabled="true"/>
  297.     <command id="cmd_label1" oncommand="goDoCommand('cmd_label1');" disabled="true"/>
  298.     <command id="cmd_label2" oncommand="goDoCommand('cmd_label2');" disabled="true"/>
  299.     <command id="cmd_label3" oncommand="goDoCommand('cmd_label3');" disabled="true"/>
  300.     <command id="cmd_label4" oncommand="goDoCommand('cmd_label4');" disabled="true"/>
  301.     <command id="cmd_label5" oncommand="goDoCommand('cmd_label5');" disabled="true"/>
  302. </commandset>
  303.  
  304. <commandset id="mailToolsMenuItems"
  305.               commandupdater="true"
  306.               events="create-menu-tasks"
  307.               oncommandupdate="goUpdateMailMenuItems(this)">
  308.   <command id="cmd_applyFilters" oncommand="goDoCommand('cmd_applyFilters');" disabled="true"/>
  309.   <command id="cmd_runJunkControls" oncommand="goDoCommand('cmd_runJunkControls');" disabled="true"/>
  310.   <command id="cmd_deleteJunk" oncommand="goDoCommand('cmd_deleteJunk');" disabled="true"/>
  311.   <command id="cmd_search" oncommand="goDoCommand('cmd_search')"/>
  312. </commandset>
  313.  
  314. <keyset id="mailKeys">
  315.   <key id="space" key=" " modifiers="shift any" oncommand="SpaceHit(event);"/>
  316.  
  317.   <!-- File Menu -->
  318.   <key id="key_newNavigator"/>
  319.   <key id="key_newBlankPage"/>
  320.   <key id="key_close"/>
  321.   <key id="key_quit"/>
  322.   <!-- Edit Menu -->
  323.   <key id="key_undo"/>
  324.   <key id="key_redo"/>
  325.   <key id="key_cut"/>
  326.   <key id="key_copy"/>
  327.   <key id="key_paste"/>
  328.   <key id="key_delete" oncommand="goDoCommand('cmd_delete');" shift="false"/>
  329.   <key id="cmd_shiftDelete" oncommand="goDoCommand('cmd_shiftDelete')"/>
  330.   <key id="key_selectAll"/>
  331.   <key id="key_selectThread" key="&selectThreadCmd.key;"             oncommand="goDoCommand('cmd_selectThread');" modifiers="accel, shift"/>
  332.   
  333.   <key id="key_toggleRead" key="&markAsReadCmd.key;"                 oncommand="goDoCommand('cmd_markAsRead');"/>
  334.   <key id="key_toggleFlagged" key="&markFlaggedCmd.key;"             oncommand="goDoCommand('cmd_markAsFlagged');"/>
  335.   <key id="key_markJunk" key="&markAsJunkCmd.key;"                   oncommand="goDoCommand('cmd_markAsJunk');"/>
  336.   <key id="key_markNotJunk" key="&markAsNotJunkCmd.key;"             oncommand="goDoCommand('cmd_markAsNotJunk');"
  337.        modifiers="shift"/>
  338.   <key id="key_markNotPhish" key="&markAsNotPhishCmd.key;"           oncommand="goDoCommand('cmd_markAsNotPhish');"
  339.        modifiers="shift"/>
  340.   <key id="key_markAllRead" key="&markAllReadCmd.key;"               oncommand="goDoCommand('cmd_markAllRead');" modifiers="accel, shift"/>
  341.   <key id="key_markThreadAsRead" key="&markThreadAsReadCmd.key;"     oncommand="goDoCommand('cmd_markThreadAsRead')"/>
  342.   <key id="key_markReadByDate" key="&markReadByDateCmd.key;"         oncommand="goDoCommand('cmd_markReadByDate')"/>
  343.   <key id="key_nextMsg" key="&nextMsgCmd.key;"                       oncommand="goDoCommand('cmd_nextMsg')"/>
  344.   <key id="key_nextUnreadMsg" key="&nextUnreadMsgCmd.key;"           oncommand="goDoCommand('cmd_nextUnreadMsg')"/>
  345.   <key id="key_expandAllThreads" key="&expandAllThreadsCmd.key;"     oncommand="goDoCommand('cmd_expandAllThreads')"/>
  346.   <key key="&expandAllThreadsCmd.key;" modifiers="shift"             oncommand="goDoCommand('cmd_expandAllThreads')"/>
  347.   <key id="key_collapseAllThreads" key="&collapseAllThreadsCmd.key;" oncommand="goDoCommand('cmd_collapseAllThreads')"/>
  348.   <key key="&collapseAllThreadsCmd.key;" modifiers="shift"           oncommand="goDoCommand('cmd_collapseAllThreads')"/>
  349.   <key id="key_nextUnreadThread" key="&nextUnreadThreadCmd.key;"     oncommand="goDoCommand('cmd_nextUnreadThread')"/>
  350.   <key id="key_previousMsg" key="&previousMsgCmd.key;"               oncommand="goDoCommand('cmd_previousMsg')"/>
  351.   <key id="key_previousUnreadMsg" key="&previousUnreadMsgCmd.key;"   oncommand="goDoCommand('cmd_previousUnreadMsg')"/>
  352.   <key id="key_reply" key="&replyMsgCmd.key;"                        oncommand="goDoCommand('cmd_reply')" modifiers="accel"/>
  353.   <key id="key_replyall" key="&replyToAllMsgCmd.key;"                oncommand="goDoCommand('cmd_replyall')" modifiers="accel, shift"/>
  354.   <key id="key_forward" key="&forwardMsgCmd.key;"                    oncommand="goDoCommand('cmd_forward')" modifiers="accel"/>
  355.   <key id="key_editAsNew" key="&editMsgAsNewCmd.key;"                oncommand="goDoCommand('cmd_editAsNew')" modifiers="accel"/>
  356.   <key id="key_watchThread" key="&watchThreadMenu.key;"              oncommand="goDoCommand('cmd_watchThread')" />
  357.   <key id="key_killThread" key="&killThreadMenu.key;"                oncommand="goDoCommand('cmd_killThread')" />
  358.   <key id="key_openMessage" key="&openMessageWindowCmd.key;"         oncommand="goDoCommand('cmd_openMessage')" modifiers="accel"/>
  359.   <key id="key_print" key="&printCmd.key;"                           oncommand="goDoCommand('cmd_print')" modifiers="accel"/>
  360.   <key id="key_saveAsFile" key="&saveAsFileCmd.key;"                 oncommand="goDoCommand('cmd_saveAsFile')" modifiers="accel"/>
  361.   <key id="key_viewPageSource" key="&pageSourceCmd.key;"             oncommand="goDoCommand('cmd_viewPageSource')" modifiers="accel"/>
  362.   <key id="key_getNewMessages" key="&getNewMsgCmd.key;"              oncommand="goDoCommand('cmd_getNewMessages')" modifiers="accel"/>
  363.         <key id="key_getAllNewMessages" 
  364.              key="&getAllNewMsgCmd.key;"  
  365.              oncommand="goDoCommand('cmd_getMsgsForAuthAccounts');"
  366.              modifiers="accel, shift"/>
  367.   <key id="key_find" key="&findCmd.key;"  oncommand="goDoCommand('cmd_find')" modifiers="accel"/>
  368.   <key id="key_findAgain" key="&findAgainCmd.key;"   oncommand="goDoCommand('cmd_findAgain')" modifiers="accel"/>
  369.   <key id="key_findPrev"  key="&findPrevCmd.key;"    oncommand="goDoCommand('cmd_findPrev')"  modifiers="accel, shift"/>
  370.   <key keycode="&findAgainCmd.key2;"   oncommand="goDoCommand('cmd_findAgain')"/>
  371.   <key keycode="&findPrevCmd.key2;"    oncommand="goDoCommand('cmd_findPrev')"  modifiers="shift"/>
  372.   <key id="key_findTypeText"/>
  373.   <key id="key_findTypeLinks"/>
  374.   <key id="key_stop" keycode="VK_ESCAPE" command="cmd_stop"/>
  375.   <keyset id="viewZoomKeys"/>
  376.  
  377.   <!-- Tab/F6 Keys -->
  378.   <key keycode="VK_TAB" oncommand="SwitchPaneFocus(event);" modifiers="control,shift"/>
  379.   <key keycode="VK_TAB" oncommand="SwitchPaneFocus(event);" modifiers="control"/>
  380.   <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="control,shift"/>
  381.   <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="control"/>
  382.   <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="shift"/>
  383.   <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);"/>
  384.  
  385.   <!-- View Toggle Keys (F8/F9) -->
  386.   <key id="key_toggleMessagePane" keycode="VK_F8" oncommand="MsgToggleMessagePane();" observes="mailDisableKeys"/>
  387.   <key id="key_toggleFolderPane" keycode="VK_F9" oncommand="MsgToggleSplitter('gray_vertical_splitter');" observes="mailDisableKeys"/>
  388.  
  389.   <!-- Label Keys -->
  390.   <key id="key_label0" charcode="&labelCmd0.key;"  oncommand="goDoCommand('cmd_label0')"/>
  391.   <key id="key_label1" charcode="&labelCmd1.key;"  oncommand="goDoCommand('cmd_label1')"/>
  392.   <key id="key_label2" charcode="&labelCmd2.key;"  oncommand="goDoCommand('cmd_label2')"/>
  393.   <key id="key_label3" charcode="&labelCmd3.key;"  oncommand="goDoCommand('cmd_label3')"/>
  394.   <key id="key_label4" charcode="&labelCmd4.key;"  oncommand="goDoCommand('cmd_label4')"/>
  395.   <key id="key_label5" charcode="&labelCmd5.key;"  oncommand="goDoCommand('cmd_label5')"/>
  396.  
  397.   <key id="key_searchMail" key="&searchMailCmd.key;" oncommand="goDoCommand('cmd_search')" modifiers="accel, shift"/>
  398.  
  399. </keyset>
  400.  
  401.   <popup id="threadPaneContext" onpopupshowing="return fillThreadPaneContextMenu();"
  402.     onpopuphiding="if (event.target == this) threadPaneOnPopupHiding();">
  403.     <menuitem id="threadPaneContext-openNewWindow"
  404.         label="&contextOpenNewWindow.label;"
  405.         accesskey="&contextOpenNewWindow.accesskey;"
  406.         oncommand="MsgOpenNewWindowForMessage();"/>
  407.     <menuseparator id="threadPaneContext-sep-open"/>
  408.     <menuitem id="threadPaneContext-replySender"
  409.         label="&contextReplySender.label;"
  410.         accesskey="&contextReplySender.accesskey;"
  411.         oncommand="MsgReplySender(event);"/>
  412.     <menuitem id="threadPaneContext-replyNewsgroup"
  413.         label="&contextReplyNewsgroup.label;"
  414.         accesskey="&contextReplyNewsgroup.accesskey;"
  415.         oncommand="MsgReplyGroup(event);"/>
  416.     <menuitem id="threadPaneContext-replyAll"
  417.         label="&contextReplyAll.label;"
  418.         accesskey="&contextReplyAll.accesskey;"
  419.         oncommand="MsgReplyToAllMessage(event);"/>
  420.     <menuitem id="threadPaneContext-forward"
  421.         label="&contextForward.label;"
  422.         accesskey="&contextForward.accesskey;"
  423.         oncommand="MsgForwardMessage(event);"/>
  424.     <menuitem id="threadPaneContext-forwardAsAttachment"
  425.         label="&contextForwardAsAttachment.label;"
  426.         accesskey="&contextForwardAsAttachment.accesskey;"
  427.         oncommand="MsgForwardAsAttachment(event);"/>
  428.     <menuitem id="threadPaneContext-editAsNew"
  429.         label="&contextEditAsNew.label;"
  430.         accesskey="&contextEditAsNew.accesskey;"
  431.         oncommand="MsgEditMessageAsNew();"/>
  432.     <menuseparator id="threadPaneContext-sep-reply"/>
  433.     <menuitem id="threadPaneContext-copyMessageUrl"
  434.         label="©MessageLocation.label;"
  435.         accesskey="©MessageLocation.accesskey;"
  436.         oncommand="CopyMessageUrl()"/>
  437.     <menu id="threadPaneContext-moveMenu"
  438.         label="&contextMoveMsgMenu.label;"
  439.         accesskey="&contextMoveMsgMenu.accesskey;"
  440.         sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
  441.         sortDirection="ascending"
  442.         datasources="rdf:null">
  443.       <menupopup/>
  444.       <template> 
  445.       <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  446.           <menupopup>
  447.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  448.               <menupopup>
  449.                 <menuitem label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;" disabled="true"/>
  450.                 <menuseparator/>
  451.               </menupopup>
  452.             </menu>
  453.           </menupopup>
  454.         </rule>
  455.         <rule nc:NoSelect="true">
  456.           <menupopup>
  457.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  458.           </menupopup>
  459.         </rule>
  460.         <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  461.           <menupopup>
  462.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  463.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  464.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  465.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  466.               IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  467.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  468.               <menupopup>
  469.                 <menuitem label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;" 
  470.                   oncommand="MsgMoveMessage(event.target.parentNode.parentNode)"/>
  471.                 <menuseparator/>
  472.               </menupopup>
  473.             </menu>
  474.           </menupopup>
  475.         </rule>
  476.         <rule nc:CanFileMessagesOnServer="false">
  477.           <!-- don't show servers (nntp & any others) which does not allow message filing -->
  478.           <!-- File, Move & Copy menus -->
  479.         </rule>
  480.         <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  481.           <!-- note, there is no "file here" -->
  482.           <menupopup>
  483.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  484.                   SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  485.                   BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  486.                   IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  487.                   IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  488.                   ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  489.               <menupopup/>
  490.             </menu>
  491.           </menupopup>
  492.         </rule>
  493.         <rule nc:CanFileMessages="true">
  494.           <menupopup>
  495.             <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" oncommand="MsgMoveMessage(event.target)" 
  496.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  497.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  498.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  499.               IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  500.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  501.           </menupopup>
  502.         </rule>
  503.       </template>
  504.     </menu>
  505.     <menu id="threadPaneContext-copyMenu"
  506.       label="&contextCopyMsgMenu.label;"
  507.       accesskey="&contextCopyMsgMenu.accesskey;"
  508.       sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
  509.       sortDirection="ascending"
  510.       datasources="rdf:null"> 
  511.       <menupopup/>
  512.       <template>
  513.       <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  514.           <menupopup>
  515.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  516.               <menupopup>
  517.                 <menuitem label="©HereMenu.label;" accesskey="©HereMenu.accesskey;" disabled="true"/>
  518.                 <menuseparator/>
  519.               </menupopup>
  520.             </menu>
  521.           </menupopup>
  522.         </rule>
  523.         <rule nc:NoSelect="true">
  524.           <menupopup>
  525.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  526.           </menupopup>
  527.         </rule>
  528.         <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  529.           <menupopup>
  530.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  531.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  532.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  533.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  534.               IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  535.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  536.               <menupopup>
  537.                 <menuitem label="©HereMenu.label;" accesskey="©HereMenu.accesskey;" 
  538.                   oncommand="MsgCopyMessage(event.target.parentNode.parentNode)"/>
  539.                 <menuseparator/>
  540.               </menupopup>
  541.             </menu>
  542.           </menupopup>
  543.         </rule>
  544.         <rule nc:CanFileMessagesOnServer="false">
  545.           <!-- don't show servers (nntp & any others) which does not allow message filing -->
  546.           <!-- File, Move & Copy menus -->
  547.         </rule>
  548.         <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  549.           <!-- note, there is no "file here" -->
  550.           <menupopup>
  551.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  552.                   SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  553.                   BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  554.                   IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  555.                   IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  556.                   ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  557.               <menupopup/>
  558.             </menu>
  559.           </menupopup>
  560.         </rule>
  561.         <rule nc:CanFileMessages="true">
  562.           <menupopup>
  563.             <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" 
  564.               oncommand="MsgCopyMessage(event.target)" 
  565.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  566.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  567.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  568.               IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  569.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  570.           </menupopup>
  571.         </rule>
  572.       </template>
  573.     </menu>
  574.     <menu id="threadPaneContext-labels" label="&labelMenu.label;" accesskey="&labelMenu.accesskey;">
  575.       <menupopup onpopupshowing="InitMessageLabel('threadPaneContext')">
  576.         <menuitem
  577.            id="threadPaneContext-labelMenuItem0"
  578.            type="radio"
  579.            checked="false"
  580.            accesskey="&labelCmd0.accesskey;"
  581.            command="cmd_label0"/>
  582.         <menuseparator/>
  583.         <menuitem
  584.            id="threadPaneContext-labelMenuItem1"
  585.            type="radio"
  586.            checked="false"
  587.            accesskey="&labelCmd1.accesskey;"
  588.            command="cmd_label1"/>
  589.         <menuitem
  590.            id="threadPaneContext-labelMenuItem2"
  591.            type="radio"
  592.            checked="false"
  593.            accesskey="&labelCmd2.accesskey;"
  594.            command="cmd_label2"/>
  595.         <menuitem
  596.            id="threadPaneContext-labelMenuItem3"
  597.            type="radio"
  598.            checked="false"
  599.            accesskey="&labelCmd3.accesskey;"
  600.            command="cmd_label3"/>
  601.         <menuitem
  602.            id="threadPaneContext-labelMenuItem4"
  603.            type="radio"
  604.            checked="false"
  605.            accesskey="&labelCmd4.accesskey;"
  606.            command="cmd_label4"/>
  607.         <menuitem
  608.            id="threadPaneContext-labelMenuItem5"
  609.            type="radio"
  610.            checked="false"
  611.            accesskey="&labelCmd5.accesskey;"
  612.            command="cmd_label5"/>
  613.       </menupopup>
  614.     </menu>
  615.     <menu id="threadPaneContext-mark" label="&markMenu.label;" accesskey="&markMenu.accesskey;">
  616.       <menupopup onpopupshowing="InitMessageMark()">
  617.         <menuitem id="threadPaneContext-markRead"
  618.                   type="checkbox"
  619.                   label="&markAsReadCmd.label;"
  620.                   accesskey="&markAsReadCmd.accesskey;"
  621.                   command="cmd_markAsRead"/>
  622.         <menuitem label="&markThreadAsReadCmd.label;"
  623.                   accesskey="&markThreadAsReadCmd.accesskey;"
  624.                   command="cmd_markThreadAsRead"/>
  625.         <menuitem label="&markReadByDateCmd.label;"
  626.                   accesskey="&markReadByDateCmd.accesskey;"
  627.                   command="cmd_markReadByDate"/>
  628.         <menuitem label="&markAllReadCmd.label;"
  629.                   accesskey="&markAllReadCmd.accesskey;"
  630.                   command="cmd_markAllRead"/>
  631.         <menuseparator/>
  632.         <menuitem id="threadPaneContext-markFlagged"
  633.                   type="checkbox"
  634.                   label="&markFlaggedCmd.label;"
  635.                   accesskey="&markFlaggedCmd.accesskey;"
  636.                   command="cmd_markAsFlagged"/>
  637.         <menuseparator/>
  638.         <menuitem label="&markAsJunkCmd.label;"
  639.                   accesskey="&markAsJunkCmd.accesskey;"
  640.                   command="cmd_markAsJunk"/>
  641.         <menuitem label="&markAsNotJunkCmd.label;"
  642.                   accesskey="&markAsNotJunkCmd.accesskey;"
  643.                   command="cmd_markAsNotJunk"/>
  644.         <menuitem label="&recalculateJunkScoreCmd.label;"
  645.                   accesskey="&recalculateJunkScoreCmd.accesskey;"
  646.                   command="cmd_recalculateJunkScore"/>
  647.         <menuitem label="&markAsNotPhishCmd.label;"
  648.                   accesskey="&markAsNotPhishCmd.accesskey;"
  649.                   command="cmd_markAsNotPhish"/>
  650.       </menupopup>
  651.     </menu>
  652.     <menuseparator/>
  653.     <menuitem label="&downloadFlaggedCmd.label;"     accesskey="&downloadFlaggedCmd.accesskey;"    command="cmd_downloadFlagged"/>
  654.     <menuitem label="&downloadSelectedCmd.label;"    accesskey="&downloadSelectedCmd.accesskey;"   command="cmd_downloadSelected"/>
  655.     <menuseparator/>
  656.     <menuitem id="threadPaneContext-saveAs"
  657.         label="&contextSaveAs.label;"
  658.         accesskey="&contextSaveAs.accesskey;"
  659.         oncommand="MsgSaveAsFile();"/>
  660.     <menuitem id="threadPaneContext-printpreview"
  661.         label="&contextPrintPreview.label;"
  662.         oncommand="PrintEnginePrintPreview();"/>
  663.     <menuitem id="threadPaneContext-print"
  664.         label="&contextPrint.label;"
  665.         accesskey="&contextPrint.accesskey;"
  666.         oncommand="PrintEnginePrint();"/>
  667.     <menuitem id="threadPaneContext-delete"
  668.         command="cmd_delete"/>
  669.   </popup>
  670.  
  671.   <popup id="folderPaneContext" onpopupshowing="return fillFolderPaneContextMenu();"
  672.     onpopuphiding="if (event.target == this) folderPaneOnPopupHiding();">
  673.     <menuitem id="folderPaneContext-openNewWindow"
  674.         label="&folderContextOpenNewWindow.label;"
  675.         accesskey="&folderContextOpenNewWindow.accesskey;"
  676.         oncommand="MsgOpenNewWindowForFolder(null,-1);"/>
  677.     <menuitem id="folderPaneContext-copy-location"
  678.         label="&folderContextCopyLocation.label;"
  679.         accesskey="&folderContextCopyLocation.accesskey;"
  680.         oncommand="CopyFolderUrl();"/>
  681.     <menuitem id="folderPaneContext-subscribe"
  682.         label="&folderContextSubscribe.label;"
  683.         accesskey="&folderContextSubscribe.accesskey;"
  684.         oncommand="MsgSubscribe();"/>
  685.     <menuitem id="folderPaneContext-newsUnsubscribe"
  686.         label="&folderContextUnsubscribe.label;"
  687.         accesskey="&folderContextUnsubscribe.accesskey;"
  688.         oncommand="MsgUnsubscribe();"/>
  689.     <menuseparator id="folderPaneContext-sep1"/>
  690.     <menuitem id="folderPaneContext-getMessages"
  691.         label="&folderContextGetMessages.label;"
  692.         accesskey="&folderContextGetMessages.accesskey;"
  693.         oncommand="MsgGetMessage();"/>
  694.     <menuitem id="folderPaneContext-markNewsgroupAllRead"
  695.         label="&folderContextMarkNewsgroupRead.label;"
  696.         accesskey="&folderContextMarkNewsgroupRead.accesskey;"
  697.         oncommand="MsgMarkAllRead();"/>
  698.     <menuitem id="folderPaneContext-markMailFolderAllRead"
  699.         label="&folderContextMarkMailFolderRead.label;"
  700.         accesskey="&folderContextMarkMailFolderRead.accesskey;"
  701.         oncommand="MsgMarkAllRead();"/>
  702.     <menuitem id="folderPaneContext-new"
  703.         label="&folderContextNew.label;"
  704.         accesskey="&folderContextNew.accesskey;"
  705.         oncommand="MsgNewFolder(NewFolder);"/>
  706.     <menuitem id="folderPaneContext-rename"
  707.         label="&folderContextRename.label;"
  708.         accesskey="&folderContextRename.accesskey;"
  709.         oncommand="MsgRenameFolder();"/>
  710.         <menuitem id="folderPaneContext-compact"
  711.               label="&folderContextCompact.label;"
  712.               accesskey="&folderContextCompact.accesskey;"
  713.         oncommand="MsgCompactFolder(false);"/>          //for one folder only
  714.     <menuitem id="folderPaneContext-remove"
  715.         label="&folderContextRemove.label;"
  716.         accesskey="&folderContextRemove.accesskey;"
  717.         oncommand="MsgDeleteFolder();"/>
  718.     <menuitem id="folderPaneContext-emptyTrash"
  719.         label="&folderContextEmptyTrash.label;"
  720.         accesskey="&folderContextEmptyTrash.accesskey;"
  721.         oncommand="MsgEmptyTrash();"/>
  722.     <menuitem id="folderPaneContext-sendUnsentMessages"
  723.         label="&folderContextSendUnsentMessages.label;"
  724.         accesskey="&folderContextSendUnsentMessages.accesskey;"
  725.         oncommand="goDoCommand('cmd_sendUnsentMsgs')"/>
  726.     <menuseparator id="folderPaneContext-sep-edit"/>
  727.     <menuitem id="folderPaneContext-searchMessages"
  728.         label="&folderContextSearchMessages.label;"
  729.         accesskey="&folderContextSearchMessages.accesskey;"
  730.         command="cmd_search"/>
  731.     <menuitem id="folderPaneContext-properties"
  732.         label="&folderContextProperties.label;"
  733.         accesskey="&folderContextProperties.accesskey;"
  734.         oncommand="MsgFolderProperties();"/>
  735.   </popup> 
  736.  
  737.   <popup id="messagePaneContext"   
  738.      onpopupshowing="if (event.target != this) return true; gContextMenu = new nsContextMenu(this); return fillMessagePaneContextMenu();"
  739.      onpopuphiding="if (event.target == this) gContextMenu = null;">
  740.         <menuitem id="context-openlink"
  741.                   label="&openLinkCmd.label;"
  742.                   accesskey="&openLinkCmd.accesskey;"
  743.                   oncommand="gContextMenu.openLink();"/> 
  744.         <menuitem id="context-openlinkintab"
  745.               label="&openLinkCmdInTab.label;"
  746.                   accesskey="&openLinkCmdInTab.accesskey;"
  747.                   oncommand="gContextMenu.openLinkInTab();"/>
  748.         <menuseparator id="messagePaneContext-sep-link"/>
  749.         <menuitem id="context-selectall"
  750.                   label="&selectAllCmd.label;"
  751.                   accesskey="&selectAllCmd.accesskey;"
  752.                   command="cmd_selectAll"/>
  753.         <menuitem id="context-copy"
  754.                   label="©Cmd.label;"
  755.                   accesskey="©Cmd.accesskey;"
  756.                   command="cmd_copy"/>
  757.     <menuseparator id="messagePaneContext-sep-open"/>
  758.     <menuitem id="messagePaneContext-replySender"
  759.         label="&contextReplySender.label;"
  760.         accesskey="&contextReplySender.accesskey;"
  761.         oncommand="MsgReplySender(event);"/>
  762.     <menuitem id="messagePaneContext-replyNewsgroup"
  763.         label="&contextReplyNewsgroup.label;"
  764.         accesskey="&contextReplyNewsgroup.accesskey;"
  765.         oncommand="MsgReplyMessage(event);"/>
  766.     <menuitem id="messagePaneContext-replyAll"
  767.         label="&contextReplyAll.label;"
  768.         accesskey="&contextReplyAll.accesskey;"
  769.         oncommand="MsgReplyToAllMessage(event);"/>
  770.     <menuitem id="messagePaneContext-forward"
  771.         label="&contextForward.label;"
  772.         accesskey="&contextForward.accesskey;"
  773.         oncommand="MsgForwardMessage(event);"/>
  774.     <menuitem id="messagePaneContext-editAsNew"
  775.         label="&contextEditAsNew.label;"
  776.         accesskey="&contextEditAsNew.accesskey;"
  777.         oncommand="MsgEditMessageAsNew();"/>
  778.     <menuseparator id="messagePaneContext-sep-reply"/>
  779.     <menuitem id="messagePaneContext-copyMessageUrl"
  780.         label="©MessageLocation.label;"
  781.         accesskey="©MessageLocation.accesskey;"
  782.         oncommand="CopyMessageUrl()"/>
  783.     <menu id="messagePaneContext-moveMenu"
  784.         label="&contextMoveMsgMenu.label;"
  785.         accesskey="&contextMoveMsgMenu.accesskey;"
  786.         sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
  787.         sortDirection="ascending"
  788.         datasources="rdf:null">
  789.       <menupopup/>
  790.       <template> 
  791.       <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  792.           <menupopup>
  793.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  794.               <menupopup>
  795.                 <menuitem label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;" disabled="true"/>
  796.                 <menuseparator/>
  797.               </menupopup>
  798.             </menu>
  799.           </menupopup>
  800.         </rule>
  801.         <rule nc:NoSelect="true">
  802.           <menupopup>
  803.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  804.           </menupopup>
  805.         </rule>
  806.         <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  807.           <menupopup>
  808.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  809.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  810.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  811.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  812.               IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  813.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  814.               <menupopup>
  815.                 <menuitem label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;" 
  816.                   oncommand="MsgMoveMessage(event.target.parentNode.parentNode)"/>
  817.                 <menuseparator/>
  818.               </menupopup>
  819.             </menu>
  820.           </menupopup>
  821.         </rule>
  822.         <rule nc:CanFileMessagesOnServer="false">
  823.           <!-- don't show servers (nntp & any others) which does not allow message filing -->
  824.           <!-- File, Move & Copy menus -->
  825.         </rule>
  826.         <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  827.           <!-- note, there is no "file here" -->
  828.           <menupopup>
  829.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  830.                   SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  831.                   BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  832.                   IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  833.                   IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  834.                   ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  835.               <menupopup/>
  836.             </menu>
  837.           </menupopup>
  838.         </rule>
  839.         <rule nc:CanFileMessages="true">
  840.           <menupopup>
  841.             <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" oncommand="MsgMoveMessage(event.target)" 
  842.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  843.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  844.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  845.               IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  846.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  847.           </menupopup>
  848.         </rule>
  849.       </template>
  850.     </menu>
  851.     <menu id="messagePaneContext-copyMenu"
  852.       label="&contextCopyMsgMenu.label;"
  853.       accesskey="&contextCopyMsgMenu.accesskey;"
  854.       sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
  855.       sortDirection="ascending"
  856.       datasources="rdf:null">
  857.       <menupopup/>
  858.       <template>
  859.       <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  860.           <menupopup>
  861.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  862.               <menupopup>
  863.                 <menuitem label="©HereMenu.label;" accesskey="©HereMenu.accesskey;" disabled="true"/>
  864.                 <menuseparator/>
  865.               </menupopup>
  866.             </menu>
  867.           </menupopup>
  868.         </rule>
  869.         <rule nc:NoSelect="true">
  870.           <menupopup>
  871.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  872.           </menupopup>
  873.         </rule>
  874.         <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  875.           <menupopup>
  876.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  877.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  878.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  879.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  880.               IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  881.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  882.               <menupopup>
  883.                 <menuitem label="©HereMenu.label;" accesskey="©HereMenu.accesskey;" 
  884.                   oncommand="MsgCopyMessage(event.target.parentNode.parentNode)"/>
  885.                 <menuseparator/>
  886.               </menupopup>
  887.             </menu>
  888.           </menupopup>
  889.         </rule>
  890.         <rule nc:CanFileMessagesOnServer="false">
  891.           <!-- don't show servers (nntp & any others) which does not allow message filing -->
  892.           <!-- File, Move & Copy menus -->
  893.         </rule>
  894.         <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  895.           <!-- note, there is no "file here" -->
  896.           <menupopup>
  897.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  898.                   SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  899.                   BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  900.                   IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  901.                   IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  902.                   ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  903.               <menupopup/>
  904.             </menu>
  905.           </menupopup>
  906.         </rule>
  907.         <rule nc:CanFileMessages="true">
  908.           <menupopup>
  909.             <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" 
  910.               oncommand="MsgCopyMessage(event.target)" 
  911.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  912.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  913.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  914.               IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  915.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  916.           </menupopup>
  917.         </rule>
  918.       </template>
  919.     </menu>
  920.     <menuseparator id="messagePaneContext-sep-labels-1"/>
  921.     <menu id="messagePaneContext-labels" label="&labelMenu.label;" accesskey="&labelMenu.accesskey;">
  922.       <menupopup onpopupshowing="InitMessageLabel('messagePaneContext')">
  923.         <menuitem
  924.            id="messagePaneContext-labelMenuItem0"
  925.            type="radio"
  926.            checked="false"
  927.            accesskey="&labelCmd0.accesskey;"
  928.            command="cmd_label0"/>
  929.         <menuseparator/>
  930.         <menuitem
  931.            id="messagePaneContext-labelMenuItem1"
  932.            type="radio"
  933.            checked="false"
  934.            accesskey="&labelCmd1.accesskey;"
  935.            command="cmd_label1"/>
  936.         <menuitem
  937.            id="messagePaneContext-labelMenuItem2"
  938.            type="radio"
  939.            checked="false"
  940.            accesskey="&labelCmd2.accesskey;"
  941.            command="cmd_label2"/>
  942.         <menuitem
  943.            id="messagePaneContext-labelMenuItem3"
  944.            type="radio"
  945.            checked="false"
  946.            accesskey="&labelCmd3.accesskey;"
  947.            command="cmd_label3"/>
  948.         <menuitem
  949.            id="messagePaneContext-labelMenuItem4"
  950.            type="radio"
  951.            checked="false"
  952.            accesskey="&labelCmd4.accesskey;"
  953.            command="cmd_label4"/>
  954.         <menuitem
  955.            id="messagePaneContext-labelMenuItem5"
  956.            type="radio"
  957.            checked="false"
  958.            accesskey="&labelCmd5.accesskey;"
  959.            command="cmd_label5"/>
  960.       </menupopup>
  961.     </menu>
  962.     <menu id="messagePaneContext-mark" label="&markMenu.label;" accesskey="&markMenu.accesskey;">
  963.       <menupopup onpopupshowing="InitMessageMark()">
  964.         <menuitem id="threadPaneContext-markRead"
  965.                   type="checkbox"
  966.                   label="&markAsReadCmd.label;"
  967.                   accesskey="&markAsReadCmd.accesskey;"
  968.                   command="cmd_markAsRead"/>
  969.         <menuitem label="&markThreadAsReadCmd.label;"
  970.                   accesskey="&markThreadAsReadCmd.accesskey;"
  971.                   command="cmd_markThreadAsRead"/>
  972.         <menuitem label="&markReadByDateCmd.label;"
  973.                   accesskey="&markReadByDateCmd.accesskey;"
  974.                   command="cmd_markReadByDate"/>
  975.         <menuitem label="&markAllReadCmd.label;"
  976.                   accesskey="&markAllReadCmd.accesskey;"
  977.                   command="cmd_markAllRead"/>
  978.         <menuseparator/>
  979.         <menuitem id="threadPaneContext-markFlagged"
  980.                   type="checkbox"
  981.                   label="&markFlaggedCmd.label;"
  982.                   accesskey="&markFlaggedCmd.accesskey;"
  983.                   command="cmd_markAsFlagged"/>
  984.         <menuseparator/>
  985.         <menuitem label="&markAsJunkCmd.label;" 
  986.                   accesskey="&markAsJunkCmd.accesskey;" 
  987.                   command="cmd_markAsJunk"/>
  988.         <menuitem label="&markAsNotJunkCmd.label;" 
  989.                   accesskey="&markAsNotJunkCmd.accesskey;" 
  990.                   command="cmd_markAsNotJunk"/>
  991.         <menuitem label="&recalculateJunkScoreCmd.label;"
  992.                   accesskey="&recalculateJunkScoreCmd.accesskey;"
  993.                   command="cmd_recalculateJunkScore"/>
  994.         <menuitem label="&markAsNotPhishCmd.label;"
  995.                   accesskey="&markAsNotPhishCmd.accesskey;"
  996.                   command="cmd_markAsNotPhish"/>
  997.       </menupopup>
  998.     </menu>
  999.     <menuseparator id="messagePaneContext-sep-labels-2"/>
  1000.     <menuitem id="messagePaneContext-saveAs"
  1001.         label="&contextSaveAs.label;"
  1002.         accesskey="&contextSaveAs.accesskey;"
  1003.         oncommand="MsgSaveAsFile();"/>
  1004.     <menuitem id="messagePaneContext-printpreview"
  1005.         label="&contextPrintPreview.label;"
  1006.         oncommand="PrintEnginePrintPreview();"/>
  1007.     <menuitem id="messagePaneContext-print"
  1008.         label="&contextPrint.label;"
  1009.         accesskey="&contextPrint.accesskey;"
  1010.         oncommand="PrintEnginePrint();"/>
  1011.     <menuitem id="messagePaneContext-delete"
  1012.         command="cmd_delete"/>
  1013.     <menuseparator id="messagePaneContext-sep-edit"/>
  1014.         <menuitem id="context-viewimage"
  1015.                   label="&viewImageCmd.label;"
  1016.                   accesskey="&viewImageCmd.accesskey;"
  1017.                   oncommand="gContextMenu.viewImage();"/>
  1018.         <menuseparator id="messagePaneContext-sep-image"/>
  1019.         <menuitem id="context-composeemailto"
  1020.                   label="&SendMailTo.label;"
  1021.                   accesskey="&SendMailTo.accesskey;"
  1022.                   oncommand="SendMailTo(gContextMenu.getEmail());"/>
  1023.         <menuitem id="context-createfilterfrom"
  1024.                   label="&CreateFilterFrom.label;"
  1025.                   accesskey="&CreateFilterFrom.accesskey;"
  1026.                   oncommand="CreateFilterFromMail(gContextMenu.getEmail());"/>
  1027.         <menuitem id="context-addemail"
  1028.                   label="&AddToAddressBook.label;"
  1029.                   accesskey="&AddToAddressBook.accesskey;"
  1030.                   oncommand="AddEmailToAddressBook(gContextMenu.getEmail(), gContextMenu.linkText());"/>
  1031.         <menuitem id="context-copyemail"
  1032.                   label="©EmailCmd.label;"
  1033.                   accesskey="©EmailCmd.accesskey;"
  1034.                   oncommand="gContextMenu.copyEmail();"/>
  1035.         <menuitem id="context-copylink"
  1036.                   label="©LinkCmd.label;"
  1037.                   accesskey="©LinkCmd.accesskey;"
  1038.                   command="cmd_copyLink"/>
  1039.         <menuitem id="context-copyimage"
  1040.                   label="©ImageCmd.label;"
  1041.                   accesskey="©ImageCmd.accesskey;"
  1042.                   command="cmd_copyImage"/>
  1043.         <menuseparator id="messagePaneContext-sep-copy"/>
  1044.         <menuitem id="context-savelink"
  1045.                   label="&saveLinkCmd.label;"
  1046.                   accesskey="&saveLinkCmd.accesskey;"
  1047.                   oncommand="gContextMenu.saveLink();"/>
  1048.         <menuitem id="context-saveimage"
  1049.                   label="&saveImageCmd.label;"
  1050.                   accesskey="&saveImageCmd.accesskey;"
  1051.                   oncommand="gContextMenu.saveImage();"/>
  1052.         <menuitem id="context-bookmarklink"
  1053.                   label="&bookmarkLinkCmd.label;"
  1054.                   accesskey="&bookmarkLinkCmd.accesskey;"
  1055.                   oncommand="initBMService();
  1056.                              BookmarksUtils.addBookmark(gContextMenu.linkURL(),
  1057.                                                         gContextMenu.linkText());"/>
  1058.  
  1059. </popup>
  1060.  
  1061. <menubar id="mailMenubar" grippytooltiptext="&menuBar.tooltip;">
  1062.   <menu id="menu_File" >
  1063.     <menupopup id="menu_FilePopup" onpopupshowing="file_init();">
  1064.       <menu id="menu_New">
  1065.         <menupopup id="menu_NewPopup" onpopupshowing="menu_new_init();">
  1066.           <menuitem label="&newNewMsgCmd.label;"
  1067.                     accesskey="&newNewMsgCmd.accesskey;"
  1068.                     key="key_newMessage"
  1069.                     oncommand="MsgNewMessage(null);"/>
  1070.           <menuitem id="menu_newFolder" label="&newFolderCmd.label;"
  1071.                      oncommand="MsgNewFolder(NewFolder);"
  1072.                      accesskey="&newFolderCmd.accesskey;"/>
  1073.           <menuitem id="menu_newVirtualFolder" label="&newVirtualFolderCmd.label;"
  1074.                     oncommand="MsgVirtualFolderProperties(false);"
  1075.                     accesskey="&newVirtualFolderCmd.accesskey;"/>
  1076.           <menuitem id="newAccountMenuItem" label="&newAccountCmd.label;"
  1077.                      accesskey="&newAccountCmd.accesskey;"
  1078.                      oncommand="MsgAccountWizard();"/>
  1079.           <menuseparator/>
  1080.           <menuitem id="menu_newNavigator"/>
  1081.           <menuitem id="menu_newEditor"/>
  1082.         </menupopup>
  1083.       </menu>
  1084.       <menuitem id="openMessageFileMenuitem" label="&openMessageFileCmd.label;"
  1085.         key="key_openFileMessage"
  1086.         accesskey="&openMessageFileCmd.accesskey;"
  1087.         oncommand="MsgOpenFromFile();"/>
  1088.       <menu id="fileAttachmentMenu" label="&openAttachmentCmd.label;" accesskey="&openAttachmentCmd.accesskey;" disabled="true" persist="hidden">
  1089.         <menupopup id="attachmentMenuList" onpopupshowing="FillAttachmentListPopup(this);"/>
  1090.       </menu>
  1091.       <menuitem id="menu_close"/>
  1092.       <menuseparator/>
  1093.       <menu label="&saveAsMenu.label;" accesskey="&saveAsMenu.accesskey;">
  1094.         <menupopup>
  1095.           <menuitem label="&saveAsFileCmd.label;"
  1096.            accesskey="&saveAsFileCmd.accesskey;"
  1097.            key="key_saveAsFile"
  1098.            command="cmd_saveAsFile"/>
  1099.           <menuitem label="&saveAsTemplateCmd.label;"
  1100.            accesskey="&saveAsTemplateCmd.accesskey;"
  1101.            command="cmd_saveAsTemplate"/>
  1102.         </menupopup>
  1103.       </menu>
  1104.       <menuseparator/>
  1105.       <menuitem label="&getNewMsgCmd.label;"
  1106.        accesskey="&getNewMsgCmd.accesskey;"
  1107.        key="key_getNewMessages"
  1108.        command="cmd_getNewMessages"/>
  1109.                         <menu label="&getNewMsgForCmd.label;" 
  1110.                               accesskey="&getNewMsgForCmd.accesskey;"
  1111.                               sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
  1112.                               sortDirection="ascending"
  1113.                               datasources="rdf:msgaccountmanager rdf:mailnewsfolders"
  1114.                               containment="http://home.netscape.com/NC-rdf#child"
  1115.                               ref="msgaccounts:/"
  1116.                               command="cmd_getNewMessages">
  1117.                             <menupopup>
  1118.                                 <menuitem label="&getAllNewMsgCmdPopupMenu.label;"
  1119.                                           accesskey="&getAllNewMsgCmdPopupMenu.accesskey;"
  1120.                                           key="key_getAllNewMessages"
  1121.                                           command="cmd_getMsgsForAuthAccounts"/>
  1122.                                 <menuseparator/>
  1123.                             </menupopup>
  1124.                             <template>
  1125.                                 <rule nc:IsServer="true" nc:CanGetMessages="true">
  1126.                                     <menupopup>
  1127.                                         <menuitem uri="..." 
  1128.                                                   value="..." 
  1129.                                                   label="rdf:http://home.netscape.com/NC-rdf#Name" 
  1130.                                                   oncommand="MsgGetMessagesForAccount(event)"/>
  1131.                                     </menupopup>
  1132.                                 </rule>
  1133.                             </template>
  1134.                             <menupopup/>
  1135.                         </menu>
  1136.       <menuitem id="menu_getnextnmsg" label="&getNextNMsgCmd.label;"
  1137.        accesskey="&getNextNMsgCmd.accesskey;"
  1138.        command="cmd_getNextNMessages"/>
  1139.       <menuitem id="menu_sendunsentmsgs" label="&sendUnsentCmd.label;"
  1140.        accesskey="&sendUnsentCmd.accesskey;"
  1141.        command="cmd_sendUnsentMsgs"/>
  1142.       <menuitem label="&subscribeCmd.label;"
  1143.        accesskey="&subscribeCmd.accesskey;"
  1144.        oncommand="MsgSubscribe();"/>
  1145.        <menuseparator/>
  1146.       <menuitem id="menu_renameFolder" label="&renameFolder.label;"
  1147.                 accesskey="&renameFolder.accesskey;"
  1148.                 command="cmd_renameFolder"
  1149.                 observes="mailHideMenus"/>
  1150.       <menuitem id="menu_compactFolder" label="&compactFolders.label;"
  1151.                 accesskey="&compactFolder.accesskey;"
  1152.                 command="cmd_compactFolder"
  1153.                 observes="mailHideMenus"/>
  1154.       <menuitem id="menu_emptyTrash" label="&emptyTrashCmd.label;"
  1155.                 accesskey="&emptyTrashCmd.accesskey;"
  1156.                 command="cmd_emptyTrash"
  1157.                 observes="mailHideMenus"/>
  1158.       <menuseparator id="trashMenuSeparator" observes="mailHideMenus"/>
  1159.       <menu label="&offlineMenu.label;" accesskey="&offlineMenu.accesskey;">
  1160.         <menupopup>
  1161.            <menuitem id="offlineGoOfflineCmd"/>
  1162.        <menuseparator/>
  1163.        <menuitem label="&synchronizeOfflineCmd.label;"  accesskey="&synchronizeOfflineCmd.accesskey;" command="cmd_synchronizeOffline"/>
  1164.        <menuitem label="&settingsOfflineCmd.label;"     accesskey="&settingsOfflineCmd.accesskey;"    command="cmd_settingsOffline"/>
  1165.            <menuseparator/>
  1166.            <menuitem label="&downloadFlaggedCmd.label;"     accesskey="&downloadFlaggedCmd.accesskey;"    command="cmd_downloadFlagged"/>
  1167.            <menuitem label="&downloadSelectedCmd.label;"    accesskey="&downloadSelectedCmd.accesskey;"   command="cmd_downloadSelected"/>
  1168.         </menupopup>
  1169.       </menu>
  1170.  
  1171.       <menuseparator/>
  1172.       <menuitem id="printSetupMenuItem" label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" command="cmd_printSetup"/>
  1173.       <menuitem id="printPreviewMenuItem" label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;" command="cmd_printpreview"/>
  1174.       <menuitem id="printMenuItem" key="key_print" label="&printCmd.label;" accesskey="&printCmd.accesskey;" command="cmd_print"/>
  1175.     </menupopup>
  1176.   </menu>
  1177.  
  1178.   <menu id="menu_Edit" oncommand="CommandUpdate_UndoRedo();">
  1179.     <menupopup id="menu_Edit_Popup" onpopupshowing="InitEditMessagesMenu()">
  1180.       <menuitem id="menu_undo"/>
  1181.       <menuitem id="menu_redo"/>
  1182.       <menuseparator/>
  1183.       <menuitem id="menu_cut"/>
  1184.       <menuitem id="menu_copy"/>
  1185.       <menuitem id="menu_paste"/>
  1186.       <menuitem id="menu_delete" command="cmd_delete"/>
  1187.       <menuseparator/>
  1188.       <menu label="&selectMenu.label;" accesskey="&selectMenu.accesskey;">
  1189.         <menupopup>
  1190.           <menuitem label="&all.label;" accesskey="&all.accesskey;" key="key_selectAll"
  1191.                     command="cmd_selectAll"/>
  1192.           <menuseparator/>
  1193.           <menuitem label="&selectThreadCmd.label;"
  1194.            accesskey="&selectThreadCmd.accesskey;"
  1195.            key="key_selectThread"
  1196.            command="cmd_selectThread"/>
  1197.           <menuitem label="&selectFlaggedCmd.label;"
  1198.                     accesskey="&selectFlaggedCmd.accesskey;"
  1199.                     command="cmd_selectFlagged"/>
  1200.         </menupopup>
  1201.       </menu>
  1202.       <menuseparator/>
  1203.       <menuitem label="&findCmd.label;" key="key_find" accesskey="&findCmd.accesskey;" command="cmd_find"/>
  1204.       <menuitem label="&findAgainCmd.label;" key="key_findAgain" accesskey="&findAgainCmd.accesskey;" command="cmd_findAgain"/>
  1205.       <menuitem label="&findPrevCmd.label;"  key="key_findPrev"  accesskey="&findPrevCmd.accesskey;"  command="cmd_findPrev"/>
  1206.       <menuseparator/> 
  1207.       <menuitem id="menu_findTypeLinks"/>
  1208.       <menuitem id="menu_findTypeText"/>
  1209.       <menuseparator/>
  1210.       <menuitem id="menu_properties" label="&folderPropsCmd.label;"
  1211.                 accesskey="&folderPropsCmd.accesskey;"
  1212.                 command="cmd_properties"
  1213.                 observes="mailHideMenus"/>
  1214.       <menuitem label="&accountManagerCmd.label;" accesskey="&accountManagerCmd.accesskey;" oncommand="MsgAccountManager(null);"/>
  1215.       <menuitem id="menu_preferences" oncommand="goPreferences('mailnews', 'chrome://messenger/content/pref-mailnews.xul','mailnews')"/>
  1216.     </menupopup>
  1217.   </menu>
  1218.  
  1219.   <menu id="menu_View">
  1220.     <menupopup id="menu_View_Popup" onpopupshowing="view_init()">
  1221.       <menu id="menu_Toolbars">
  1222.         <menupopup id="view_toolbars_popup">
  1223.           <menuitem id="menu_showMessengerToolbar"
  1224.            type="checkbox"
  1225.            label="&showMessengerToolbarCmd.label;"
  1226.            accesskey="&showMessengerToolbarCmd.accesskey;"
  1227.            oncommand="goToggleToolbar('msgToolbar', 'menu_showMessengerToolbar')"
  1228.            checked="true"/>
  1229.           <menuitem id="menu_showLocationToolbar"
  1230.                     type="checkbox"
  1231.                     label="&showLocationToolbarCmd.label;"
  1232.                     accesskey="&showLocationToolbarCmd.accesskey;"
  1233.                     oncommand="goToggleLocationToolbar('true');"
  1234.                     observes="mailHideMenus"
  1235.                     checked="false" persist="checked"/>
  1236.           <menuitem id="menu_showSearchToolbar"
  1237.            type="checkbox"
  1238.            label="&showSearchToolbarCmd.label;"
  1239.            accesskey="&showSearchToolbarCmd.accesskey;"
  1240.            oncommand="goToggleToolbar('searchBox', 'menu_showSearchToolbar'); SearchBarToggled();"
  1241.            observes="mailHideMenus"
  1242.            checked="true"/>
  1243.           <menuitem type="checkbox" id="menu_showTaskbar"/>
  1244.         </menupopup>
  1245.       </menu>
  1246.       <menu id="menu_MessagePaneLayout" label="&messagePaneLayoutStyle.label;"
  1247.             accesskey="&messagePaneLayoutStyle.accesskey;" observes="mailHideMenus">
  1248.         <menupopup onpopupshowing="InitViewLayoutStyleMenu(event)">
  1249.           <menuitem id="messagePaneClassic" type="radio" label="&messagePaneClassic.label;" name="viewlayoutgroup"
  1250.                     accesskey="&messagePaneClassic.accesskey;" oncommand="ChangeMailLayout(kClassicMailLayout);"/>
  1251.           <menuitem id="messagePaneWide" type="radio" label="&messagePaneWide.label;" name="viewlayoutgroup"
  1252.                     accesskey="&messagePaneWide.accesskey;" oncommand="ChangeMailLayout(kWideMailLayout);"/>
  1253.           <menuitem id="messagePaneVertical" type="radio" label="&messagePaneVertical.label;" name="viewlayoutgroup"
  1254.                     accesskey="&messagePaneVertical.accesskey;" oncommand="ChangeMailLayout(kVerticalMailLayout);"/>
  1255.           <menuseparator/>
  1256.           <menuitem id="menu_showMessagePane" type="checkbox" label="&showMessagePaneCmd.label;" key="key_toggleMessagePane"
  1257.                     accesskey="&showMessagePaneCmd.accesskey;" oncommand="MsgToggleMessagePane();"
  1258.                     observes="mailHideMenus"/>
  1259.           <menuitem id="menu_showFolderPane" type="checkbox" label="&showFolderPaneCmd.label;" key="key_toggleFolderPane"
  1260.                     accesskey="&showFolderPaneCmd.accesskey;" oncommand="MsgToggleSplitter('gray_vertical_splitter');"
  1261.                     observes="mailHideMenus"/>
  1262.         </menupopup>
  1263.       </menu>
  1264.       <menuseparator id="viewMessagesMenuSeparator" observes="mailHideMenus"/>
  1265.       <menu id="viewSortMenu" label="&sortMenu.label;"
  1266.             accesskey="&sortMenu.accesskey;" observes="mailHideMenus">
  1267.         <menupopup onpopupshowing="InitViewSortByMenu()">
  1268.           <menuitem id="sortByDateMenuitem" type="radio" name="sortby" label="&sortByDateCmd.label;" accesskey="&sortByDateCmd.accesskey;" oncommand="MsgSortByDate()"/>
  1269.           <menuitem id="sortByFlagMenuitem" type="radio" name="sortby" label="&sortByFlagCmd.label;" accesskey="&sortByFlagCmd.accesskey;" oncommand="MsgSortByFlagged()"/>
  1270.           <menuitem id="sortByOrderReceivedMenuitem" type="radio" name="sortby" label="&sortByOrderReceivedCmd.label;"  accesskey="&sortByOrderReceivedCmd.accesskey;" oncommand="MsgSortByOrderReceived()"/>
  1271.           <menuitem id="sortByPriorityMenuitem" type="radio" name="sortby" label="&sortByPriorityCmd.label;" accesskey="&sortByPriorityCmd.accesskey;" oncommand="MsgSortByPriority()"/>
  1272.           <menuitem id="sortBySenderMenuitem" type="radio" name="sortby" label="&sortBySenderCmd.label;" accesskey="&sortBySenderCmd.accesskey;" oncommand="MsgSortBySender()"/>
  1273.           <menuitem id="sortByRecipientMenuitem" type="radio" name="sortby" label="&sortByRecipientCmd.label;" accesskey="&sortByRecipientCmd.accesskey;" oncommand="MsgSortByRecipient()"/>
  1274.           <menuitem id="sortBySizeMenuitem" type="radio" name="sortby" label="&sortBySizeCmd.label;" accesskey="&sortBySizeCmd.accesskey;" oncommand="MsgSortBySize()"/>
  1275.           <menuitem id="sortByStatusMenuitem" type="radio" name="sortby" label="&sortByStatusCmd.label;" accesskey="&sortByStatusCmd.accesskey;" oncommand="MsgSortByStatus()"/>
  1276.           <menuitem id="sortBySubjectMenuitem" type="radio" name="sortby" label="&sortBySubjectCmd.label;" accesskey="&sortBySubjectCmd.accesskey;" oncommand="MsgSortBySubject()"/>
  1277.           <menuitem id="sortByUnreadMenuitem" type="radio" name="sortby" label="&sortByUnreadCmd.label;"  accesskey="&sortByUnreadCmd.accesskey;" oncommand="MsgSortByUnread()"/>
  1278.           <menuitem id="sortByLabelMenuitem" type="radio" name="sortby" label="&sortByLabelCmd.label;" accesskey="&sortByLabelCmd.accesskey;" oncommand="MsgSortByLabel()"/>
  1279.           <menuitem id="sortByJunkStatusMenuitem" type="radio" name="sortby" label="&sortByJunkStatusCmd.label;" accesskey="&sortByJunkStatusCmd.accesskey;" oncommand="MsgSortByJunkStatus()"/>
  1280.           <menuitem id="sortByAttachmentsMenuitem" type="radio" name="sortby" label="&sortByAttachmentsCmd.label;" accesskey="&sortByAttachmentsCmd.accesskey;" oncommand="MsgSortByAttachments()"/>
  1281.           <menuseparator/>
  1282.           <menuitem id="sortAscending" type="radio" name="sortdirection" label="&sortAscending.label;" accesskey="&sortAscending.accesskey;" oncommand="MsgSortAscending()"/>
  1283.           <menuitem id="sortDescending" type="radio" name="sortdirection" label="&sortDescending.label;" accesskey="&sortDescending.accesskey;" oncommand="MsgSortDescending()"/>
  1284.           <menuseparator/>
  1285.           <menuitem id="sortThreaded" type="radio" name="threaded" label="&sortThreaded.label;" accesskey="&sortThreaded.accesskey;" oncommand="MsgSortThreaded();"/>
  1286.           <menuitem id="sortUnthreaded" type="radio" name="threaded" label="&sortUnthreaded.label;" accesskey="&sortUnthreaded.accesskey;" oncommand="MsgSortUnthreaded();"/>
  1287.           <menuitem id="groupBySort" type="radio" name="group" label="&groupBySort.label;" accesskey="&groupBySort.accesskey;" oncommand="MsgGroupBySort();"/>
  1288.         </menupopup>
  1289.       </menu>
  1290.       <menu id="viewMessageViewMenu" label="&msgsMenu.label;"
  1291.             accesskey="&msgsMenu.accesskey;" observes="mailHideMenus">
  1292.         <menupopup id="viewMessageViewPopup" onpopupshowing="InitViewMessageViewMenu()">
  1293.           <menuitem id="viewAll" type="radio" name="viewmessages" label="&viewAll.label;" accesskey="&viewAll.accesskey;" oncommand="ViewMessagesBy('viewPickerAll');"/>
  1294.           <menuitem id="viewUnread" type="radio" name="viewmessages" label="&viewUnread.label;" accesskey="&viewUnread.accesskey;" oncommand="ViewMessagesBy('viewPickerUnread');"/>
  1295.           <menuseparator/>
  1296.           <menuitem id="viewLabelMenuItem1" type="radio" name="viewmessages" oncommand="ViewMessagesBy('labelMenuItem1');" />
  1297.           <menuitem id="viewLabelMenuItem2" type="radio" name="viewmessages" oncommand="ViewMessagesBy('labelMenuItem2');" />
  1298.           <menuitem id="viewLabelMenuItem3" type="radio" name="viewmessages" oncommand="ViewMessagesBy('labelMenuItem3');" />
  1299.           <menuitem id="viewLabelMenuItem4" type="radio" name="viewmessages" oncommand="ViewMessagesBy('labelMenuItem4');" />
  1300.           <menuitem id="viewLabelMenuItem5" type="radio" name="viewmessages" oncommand="ViewMessagesBy('labelMenuItem5');" />
  1301.           <menuseparator id="viewLastDefaultView"/>
  1302.           <menuseparator id="viewCreateCustomViewSeparator"/>
  1303.           <menuitem id="viewCreateCustomView" label="&viewCustomView.label;" accesskey="&viewCustomView.accesskey;" oncommand="LaunchCustomizeDialog();" />
  1304.        </menupopup>
  1305.       </menu>
  1306.       <menu id="viewMessagesMenu" label="&threads.label;"
  1307.             accesskey="&threads.accesskey;" observes="mailHideMenus">
  1308.         <menupopup onpopupshowing="InitViewMessagesMenu()">
  1309.           <menuitem id="viewAllMessagesMenuItem" type="radio" name="viewmessages" label="&allMsgsCmd.label;" accesskey="&allMsgsCmd.accesskey;" disabled="true" command="cmd_viewAllMsgs"/>
  1310.           <menuitem id="viewUnreadMessagesMenuItem" type="radio" name="viewmessages" label="&unreadMsgsCmd.label;" accesskey="&unreadMsgsCmd.accesskey;" disabled="true" command="cmd_viewUnreadMsgs"/>
  1311.           <menuitem id="viewThreadsWithUnreadMenuItem" type="radio" name="viewmessages" label="&threadsWithUnreadCmd.label;" accesskey="&threadsWithUnreadCmd.accesskey;" disabled="true" command="cmd_viewThreadsWithUnread"/>
  1312.           <menuitem id="viewWatchedThreadsWithUnreadMenuItem" type="radio" name="viewmessages" label="&watchedThreadsWithUnreadCmd.label;" accesskey="&watchedThreadsWithUnreadCmd.accesskey;" disabled="true" command="cmd_viewWatchedThreadsWithUnread"/>
  1313.           <menuseparator/>
  1314.           <menuitem id="viewIgnoredThreadsMenuItem" type="checkbox" label="&ignoredThreadsCmd.label;" disabled="true" command="cmd_viewIgnoredThreads" accesskey="&ignoredThreadsCmd.accesskey;"/>
  1315.           <menuseparator/>
  1316.           <menuitem label="&expandAllThreadsCmd.label;" accesskey="&expandAllThreadsCmd.accesskey;" key="key_expandAllThreads" disabled="true" command="cmd_expandAllThreads"/>
  1317.           <menuitem label="&collapseAllThreadsCmd.label;" accesskey="&collapseAllThreadsCmd.accesskey;" key="key_collapseAllThreads" disabled="true" command="cmd_collapseAllThreads"/>
  1318.         </menupopup>
  1319.       </menu>
  1320.       <menuseparator/>
  1321.       <menu id="viewheadersmenu" label="&headersMenu.label;" accesskey="&headersMenu.accesskey;">
  1322.         <menupopup  onpopupshowing="InitViewHeadersMenu();">
  1323.           <menuitem id="viewallheaders"
  1324.            type="radio"
  1325.            name="viewheadergroup"
  1326.            label="&headersAllCmd.label;"
  1327.            accesskey="&headersAllCmd.accesskey;"
  1328.            oncommand="MsgViewAllHeaders();"/>
  1329.           <menuitem id="viewnormalheaders"
  1330.            checked="true"
  1331.            type="radio"
  1332.            name="viewheadergroup"
  1333.            label="&headersNormalCmd.label;"
  1334.            accesskey="&headersNormalCmd.accesskey;"
  1335.            oncommand="MsgViewNormalHeaders();"/>
  1336.         </menupopup>
  1337.       </menu>
  1338.       <menu id="viewBodyMenu"
  1339.        accesskey="&bodyMenu.accesskey;"
  1340.        label="&bodyMenu.label;">
  1341.         <menupopup onpopupshowing="InitViewBodyMenu()">
  1342.           <menuitem id="bodyAllowHTML"
  1343.            type="radio"
  1344.            name="bodyPlaintextVsHTMLPref"
  1345.            label="&bodyAllowHTML.label;"
  1346.            accesskey="&bodyAllowHTML.accesskey;"
  1347.            oncommand="MsgBodyAllowHTML()"/>
  1348.           <menuitem id="bodySanitized"
  1349.            type="radio"
  1350.            name="bodyPlaintextVsHTMLPref"
  1351.            label="&bodySanitized.label;"
  1352.            accesskey="&bodySanitized.accesskey;"
  1353.            oncommand="MsgBodySanitized()"/>
  1354.           <menuitem id="bodyAsPlaintext"
  1355.            type="radio"
  1356.            name="bodyPlaintextVsHTMLPref"
  1357.            label="&bodyAsPlaintext.label;"
  1358.            accesskey="&bodyAsPlaintext.accesskey;"
  1359.            oncommand="MsgBodyAsPlaintext()"/>
  1360.         </menupopup>
  1361.       </menu>
  1362.       <menuitem id="viewAttachmentsInlineMenuitem" label="&viewAttachmentsInlineCmd.label;" accesskey="&viewAttachmentsInlineCmd.accesskey;"
  1363.         oncommand="ToggleInlineAttachment(event.target)" type="checkbox" checked="true"/>
  1364.       <menuseparator/>
  1365.       <menuitem id="stopMenuitem" label="&stopCmd.label;" accesskey="&stopCmd.accesskey;" key="key_stop" disabled="true" command="cmd_stop"/>
  1366.       <menuitem label="&reloadCmd.label;" accesskey="&reloadCmd.accesskey;" command="cmd_reload"/>
  1367.       <menuseparator/>
  1368.       <!-- overlayed from viewZoomOverlay.xul -->
  1369.       <menu id="menu_textZoom"/>
  1370.       <menu id="mailviewCharsetMenu" />
  1371.       <menuseparator/>
  1372.       <menuitem id="pageSourceMenuItem" label="&pageSourceCmd.label;" key="key_viewPageSource" accesskey="&pageSourceCmd.accesskey;" command="cmd_viewPageSource"/>
  1373.     </menupopup>
  1374.   </menu>
  1375.   <menu id="goMenu" label="&goMenu.label;" accesskey="&goMenu.accesskey;" datasources="rdf:null"
  1376.         oncommand="SelectFolder(event.target.getAttribute('value'));"
  1377.         sortResource="http://home.netscape.com/NC-rdf#FolderTreeName" sortDirection="ascending">
  1378.     <menupopup onpopupshowing="InitGoMessagesMenu();">
  1379.       <menu id="goNextMenu" label="&nextMenu.label;" accesskey="&nextMenu.accesskey;">
  1380.         <menupopup>
  1381.           <menuitem id="nextMsgMenuItem" label="&nextMsgCmd.label;" accesskey="&nextMsgCmd.accesskey;" command="cmd_nextMsg"/>
  1382.           <menuitem id="nextUnreadMsgMenuItem" label="&nextUnreadMsgCmd.label;" accesskey="&nextUnreadMsgCmd.accesskey;" command="cmd_nextUnreadMsg"/>
  1383.           <menuitem label="&nextFlaggedMsgCmd.label;" accesskey="&nextFlaggedMsgCmd.accesskey;" command="cmd_nextFlaggedMsg"/>
  1384.           <menuseparator/>
  1385.           <menuitem id="nextUnreadThreadMenuItem" label="&nextUnreadThread.label;" accesskey="&nextUnreadThreadCmd.accesskey;" command="cmd_nextUnreadThread"/>
  1386.         </menupopup>
  1387.       </menu>
  1388.       <menu id="goPreviousMenu" label="&prevMenu.label;" accesskey="&prevMenu.accesskey;">
  1389.         <menupopup>
  1390.           <menuitem id="prevMsgMenuItem" label="&prevMsgCmd.label;" accesskey="&previousMsgCmd.accesskey;" command="cmd_previousMsg"/>
  1391.           <menuitem id="prevUnreadMsgMenuItem" label="&prevUnreadMsgCmd.label;" accesskey="&previousUnreadMsgCmd.accesskey;" command="cmd_previousUnreadMsg"/>
  1392.           <menuitem label="&prevFlaggedMsgCmd.label;" accesskey="&previousFlaggedMsgCmd.accesskey;" command="cmd_previousFlaggedMsg"/>
  1393.         </menupopup>
  1394.       </menu>
  1395.       <menuseparator observes="mailHideMenus"/>
  1396.       <menuitem id="goStartPage" label="&startPageCmd.label;"
  1397.                 accesskey="&startPageCmd.accesskey;" command="cmd_goStartPage"
  1398.                 observes="mailHideMenus"/>
  1399.       <menuseparator observes="mailHideMenus"/>
  1400.     </menupopup>
  1401.     <template>
  1402.       <rule iscontainer="true" isempty="false">
  1403.         <menupopup>
  1404.           <menu uri="rdf:*" class="folderMenuItem menu-iconic"
  1405.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1406.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1407.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1408.               IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  1409.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"
  1410.               HasUnreadMessages="rdf:http://home.netscape.com/NC-rdf#HasUnreadMessages"
  1411.               NewMessages="rdf:http://home.netscape.com/NC-rdf#NewMessages"
  1412.               SubfoldersHaveUnreadMessages="rdf:http://home.netscape.com/NC-rdf#SubfoldersHaveUnreadMessages"
  1413.               label="rdf:http://home.netscape.com/NC-rdf#Name">
  1414.             <menupopup>
  1415.               <menuitem value="rdf:*" 
  1416.                   class="folderMenuItem menuitem-iconic"
  1417.                   SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1418.                   BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1419.                   IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1420.                   IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  1421.                   ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"
  1422.                   HasUnreadMessages="rdf:http://home.netscape.com/NC-rdf#HasUnreadMessages"
  1423.                   NewMessages="rdf:http://home.netscape.com/NC-rdf#NewMessages"
  1424.                   SubfoldersHaveUnreadMessages="rdf:http://home.netscape.com/NC-rdf#SubfoldersHaveUnreadMessages"
  1425.                   label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  1426.               <menuseparator/>
  1427.             </menupopup>
  1428.           </menu>
  1429.         </menupopup>
  1430.       </rule>
  1431.       <rule>
  1432.         <menupopup>
  1433.           <menuitem uri="rdf:*" value="rdf:*" class="folderMenuItem menuitem-iconic"
  1434.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1435.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1436.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1437.               IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  1438.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"
  1439.               HasUnreadMessages="rdf:http://home.netscape.com/NC-rdf#HasUnreadMessages"
  1440.               NewMessages="rdf:http://home.netscape.com/NC-rdf#NewMessages"
  1441.               SubfoldersHaveUnreadMessages="rdf:http://home.netscape.com/NC-rdf#SubfoldersHaveUnreadMessages"
  1442.               label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  1443.         </menupopup>
  1444.       </rule>
  1445.     </template>
  1446.   </menu>
  1447.  
  1448.   <menu label="&msgMenu.label;" accesskey="&msgMenu.accesskey;" >
  1449.   <menupopup onpopupshowing="InitMessageMenu();">
  1450.     <menuitem label="&newMsgCmd.label;"
  1451.     accesskey="&newMsgCmd.accesskey;"
  1452.     key="key_newMessage"
  1453.     oncommand="MsgNewMessage(null);"/>
  1454.     <menuitem id="replyMainMenu" label="&replyMsgCmd.label;"
  1455.       accesskey="&replyMsgCmd.accesskey;"
  1456.       key="key_reply"
  1457.       command="cmd_reply"/>
  1458.     <menuitem id="replySenderMainMenu" label="&replySenderCmd.label;"
  1459.       accesskey="&replySenderCmd.accesskey;"
  1460.       command="cmd_replySender"/>
  1461.     <menuitem id="replyNewsgroupMainMenu" label="&replyNewsgroupCmd.label;"
  1462.       accesskey="&replyNewsgroupCmd.accesskey;"
  1463.       key="key_reply"
  1464.       command="cmd_replyGroup"/>
  1465.     <menuitem label="&replyToAllMsgCmd.label;"
  1466.       accesskey="&replyToAllMsgCmd.accesskey;"
  1467.       key="key_replyall"
  1468.       command="cmd_replyall"/>
  1469.     <menuitem label="&forwardMsgCmd.label;"
  1470.       accesskey="&forwardMsgCmd.accesskey;"
  1471.       key="key_forward"
  1472.       command="cmd_forward"/>
  1473.     <menu id="forwardAsMenu" label="&forwardAsMenu.label;" accesskey="&forwardAsMenu.accesskey;">
  1474.       <menupopup>
  1475.         <menuitem label="&forwardAsInline.label;" accesskey="&forwardAsInline.accesskey;" command="cmd_forwardInline"/>
  1476.         <menuitem label="&forwardAsAttachmentCmd.label;" accesskey="&forwardAsAttachmentCmd.accesskey;" command="cmd_forwardAttachment"/>
  1477.       </menupopup>
  1478.     </menu>
  1479.     <menuitem label="&editMsgAsNewCmd.label;"
  1480.       accesskey="&editMsgAsNewCmd.accesskey;"
  1481.       key="key_editAsNew"
  1482.       command="cmd_editAsNew"/>
  1483.     <menuitem id="openMessageWindowMenuitem" label="&openMessageWindowCmd.label;"
  1484.               command="cmd_openMessage" accesskey="&openMessageWindowCmd.accesskey;"
  1485.               key="key_openMessage" observes="mailHideMenus"/>
  1486.    <menuseparator/>
  1487.     <menu label="&moveMsgMenu.label;" accesskey="&moveMsgMenu.accesskey;" id="moveMenu" datasources="rdf:null"
  1488.      sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
  1489.      sortDirection="ascending">
  1490.       <menupopup/>
  1491.       <template>
  1492.       <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  1493.           <menupopup>
  1494.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  1495.               <menupopup>
  1496.                 <menuitem label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;" disabled="true"/>
  1497.                 <menuseparator/>
  1498.               </menupopup>
  1499.             </menu>
  1500.           </menupopup>
  1501.         </rule>
  1502.         <rule nc:NoSelect="true">
  1503.           <menupopup>
  1504.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  1505.           </menupopup>
  1506.         </rule>
  1507.         <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  1508.           <menupopup>
  1509.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  1510.              SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1511.              BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1512.              IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1513.              IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  1514.              ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  1515.               <menupopup>
  1516.                 <menuitem label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;"
  1517.                   oncommand="MsgMoveMessage(event.target.parentNode.parentNode)"/>
  1518.                 <menuseparator/>
  1519.               </menupopup>
  1520.             </menu>
  1521.           </menupopup>
  1522.         </rule>
  1523.         <rule nc:CanFileMessagesOnServer="false">
  1524.           <!-- don't show servers (nntp & any others) which does not allow message filing -->
  1525.           <!-- File, Move & Copy menus -->
  1526.         </rule>
  1527.         <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  1528.           <!-- note, there is no "file here" -->
  1529.           <menupopup>
  1530.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  1531.              SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1532.              BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1533.              IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1534.              IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  1535.              ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  1536.               <menupopup/>
  1537.             </menu>
  1538.           </menupopup>
  1539.         </rule>
  1540.         <rule nc:CanFileMessages="true">
  1541.           <menupopup>
  1542.             <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" oncommand="MsgMoveMessage(event.target)" 
  1543.              SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1544.              BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1545.              IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1546.              IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  1547.              ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  1548.           </menupopup>
  1549.         </rule>
  1550.       </template>
  1551.     </menu>
  1552.     <menu label="©MsgMenu.label;" accesskey="©MsgMenu.accesskey;" id="copyMenu" datasources="rdf:null"
  1553.      sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
  1554.      sortDirection="ascending">
  1555.       <menupopup/>
  1556.       <template>
  1557.       <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  1558.           <menupopup>
  1559.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  1560.               <menupopup>
  1561.                 <menuitem label="©HereMenu.label;" accesskey="©HereMenu.accesskey;" disabled="true"/>
  1562.                 <menuseparator/>
  1563.               </menupopup>
  1564.             </menu>
  1565.           </menupopup>
  1566.         </rule> 
  1567.         <rule nc:NoSelect="true">
  1568.           <menupopup>
  1569.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  1570.           </menupopup>
  1571.         </rule>
  1572.         <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  1573.           <menupopup>
  1574.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  1575.              SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1576.              BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1577.              IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1578.              IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  1579.              ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  1580.               <menupopup>
  1581.                 <menuitem label="©HereMenu.label;" accesskey="©HereMenu.accesskey;" 
  1582.                   oncommand="MsgCopyMessage(event.target.parentNode.parentNode)"/>
  1583.                 <menuseparator/>
  1584.               </menupopup>
  1585.             </menu>
  1586.           </menupopup>
  1587.         </rule>
  1588.         <rule nc:CanFileMessagesOnServer="false">
  1589.           <!-- don't show servers (nntp & any others) which does not allow message filing -->
  1590.           <!-- File, Move & Copy menus -->
  1591.         </rule>
  1592.         <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  1593.           <!-- note, there is no "file here" -->
  1594.           <menupopup>
  1595.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  1596.              SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1597.              BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1598.              IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1599.              IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  1600.              ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  1601.               <menupopup/>
  1602.             </menu>
  1603.           </menupopup>
  1604.         </rule>
  1605.         <rule nc:CanFileMessages="true">
  1606.           <menupopup>
  1607.             <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" 
  1608.              oncommand="MsgCopyMessage(event.target)" 
  1609.              SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1610.              BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1611.              IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1612.              IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  1613.              ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  1614.           </menupopup>
  1615.         </rule>
  1616.       </template>
  1617.     </menu>
  1618.     <menu id="labelMenu" label="&labelMenu.label;" accesskey="&labelMenu.accesskey;">
  1619.       <menupopup id="menuPopup-labels" onpopupshowing="InitMessageLabel('menuPopup')">
  1620.         <menuitem
  1621.            id="menuPopup-labelMenuItem0"
  1622.            type="radio"
  1623.            checked="false"
  1624.            accesskey="&labelCmd0.accesskey;"
  1625.            command="cmd_label0"/>
  1626.         <menuseparator/>
  1627.         <menuitem
  1628.            id="menuPopup-labelMenuItem1"
  1629.            type="radio"
  1630.            checked="false"
  1631.            accesskey="&labelCmd1.accesskey;"
  1632.            command="cmd_label1"/>
  1633.         <menuitem
  1634.            id="menuPopup-labelMenuItem2"
  1635.            type="radio"
  1636.            checked="false"
  1637.            accesskey="&labelCmd2.accesskey;"
  1638.            command="cmd_label2"/>
  1639.         <menuitem
  1640.            id="menuPopup-labelMenuItem3"
  1641.            type="radio"
  1642.            checked="false"
  1643.            accesskey="&labelCmd3.accesskey;"
  1644.            command="cmd_label3"/>
  1645.         <menuitem
  1646.            id="menuPopup-labelMenuItem4"
  1647.            type="radio"
  1648.            checked="false"
  1649.            accesskey="&labelCmd4.accesskey;"
  1650.            command="cmd_label4"/>
  1651.         <menuitem
  1652.            id="menuPopup-labelMenuItem5"
  1653.            type="radio"
  1654.            checked="false"
  1655.            accesskey="&labelCmd5.accesskey;"
  1656.            command="cmd_label5"/>
  1657.       </menupopup>
  1658.     </menu>
  1659.     <menu id="markMenu" label="&markMenu.label;" accesskey="&markMenu.accesskey;">
  1660.       <menupopup onpopupshowing="InitMessageMark()">
  1661.         <menuitem id="markReadMenuItem"
  1662.                   type="checkbox"
  1663.                   label="&markAsReadCmd.label;"
  1664.                   accesskey="&markAsReadCmd.accesskey;"
  1665.                   command="cmd_markAsRead"/>
  1666.         <menuitem id="markThreadReadMenuItem"
  1667.                   label="&markThreadAsReadCmd.label;"
  1668.                   accesskey="&markThreadAsReadCmd.accesskey;"
  1669.                   command="cmd_markThreadAsRead"/>
  1670.         <menuitem id="markReadByDateMenuItem"
  1671.                   label="&markReadByDateCmd.label;"
  1672.                   accesskey="&markReadByDateCmd.accesskey;"
  1673.                   command="cmd_markReadByDate"/>
  1674.         <menuitem label="&markAllReadCmd.label;"
  1675.                   key="key_markAllRead"
  1676.                   accesskey="&markAllReadCmd.accesskey;"
  1677.                   command="cmd_markAllRead"/>
  1678.         <menuseparator/>
  1679.         <menuitem id="markFlaggedMenuItem"
  1680.                   type="checkbox"
  1681.                   label="&markFlaggedCmd.label;"
  1682.                   accesskey="&markFlaggedCmd.accesskey;"
  1683.                   command="cmd_markAsFlagged"/>
  1684.         <menuseparator/>
  1685.         <menuitem id="markAsJunkMenuItem"
  1686.                   label="&markAsJunkCmd.label;" 
  1687.                   accesskey="&markAsJunkCmd.accesskey;" 
  1688.                   command="cmd_markAsJunk"/>
  1689.         <menuitem id="markAsNotJunkMenuItem"
  1690.                   label="&markAsNotJunkCmd.label;" 
  1691.                   accesskey="&markAsNotJunkCmd.accesskey;" 
  1692.                   command="cmd_markAsNotJunk"/>
  1693.         <menuitem label="&recalculateJunkScoreCmd.label;"
  1694.                   accesskey="&recalculateJunkScoreCmd.accesskey;"
  1695.                   command="cmd_recalculateJunkScore"/>
  1696.         <menuitem id="markAsNotPhishMenuItem"
  1697.                   label="&markAsNotPhishCmd.label;"
  1698.                   accesskey="&markAsNotPhishCmd.accesskey;"
  1699.                   command="cmd_markAsNotPhish"/>
  1700.       </menupopup>
  1701.     </menu>
  1702.     <menuseparator/>
  1703.     <menuitem id="createFilter" label="&createFilter.label;"
  1704.               accesskey="&createFilter.accesskey;"
  1705.               command="cmd_createFilterFromMenu"/>
  1706.     <menuseparator id="threadItemsSeparator"/>
  1707.     <menuitem label="&killThreadMenu.label;"
  1708.         accesskey="&killThreadMenu.accesskey;"
  1709.         key="key_killThread"
  1710.         id="killThread"
  1711.         command="cmd_killThread"/>
  1712.     <menuitem label="&watchThreadMenu.label;"
  1713.         accesskey="&watchThreadMenu.accesskey;"
  1714.         key="key_watchThread"
  1715.         id="watchThread"
  1716.         command="cmd_watchThread"/>
  1717.   </menupopup>
  1718. </menu>
  1719.  
  1720. <menu id="tasksMenu">
  1721.   <menupopup id="taskPopup" onpopupshowing="document.commandDispatcher.updateCommands('create-menu-tasks')">
  1722.     <menuitem label="&searchMailCmd.label;"
  1723.               key="key_searchMail" 
  1724.               accesskey="&searchMailCmd.accesskey;" 
  1725.               command="cmd_search"/>
  1726.     <menuitem label="&searchAddressesCmd.label;" 
  1727.               accesskey="&searchAddressesCmd.accesskey;" 
  1728.               oncommand="MsgSearchAddresses()"/>
  1729.     <menuseparator/>
  1730.     <menuitem label="&filtersCmd.label;"
  1731.               accesskey="&filtersCmd.accesskey;"
  1732.               oncommand="MsgFilters(null, null);"/>
  1733.     <menuitem id="applyFilters"
  1734.               label="&filtersApply.label;"
  1735.               accesskey="&filtersApply.accesskey;"
  1736.               command="cmd_applyFilters"/>
  1737.     <menuseparator/>
  1738.     <menuitem label="&junkMailCmd.label;" 
  1739.               accesskey="&junkMailCmd.accesskey;" 
  1740.               oncommand="MsgJunkMail()"/>
  1741.     <menuitem id="runJunkControls"
  1742.         label="&runJunkControls.label;"
  1743.           accesskey="&runJunkControls.accesskey;"
  1744.           command="cmd_runJunkControls"/>
  1745.     <menuitem id="deleteJunk"
  1746.         label="&deleteJunk.label;"
  1747.           accesskey="&deleteJunk.accesskey;"
  1748.           command="cmd_deleteJunk"/>
  1749.     <menuseparator/>
  1750.     <menuitem label="&importCmd.label;" 
  1751.               accesskey="&importCmd.accesskey;" 
  1752.               oncommand="toImport();"/>
  1753.     <menuseparator/>
  1754.   </menupopup>
  1755. </menu>
  1756. <menu id="windowMenu"/>
  1757. <menu id="menu_Help"/>
  1758. <spacer flex="100%"/>
  1759. </menubar>
  1760.  
  1761. <toolbox id="mailToolbarToolbox">
  1762.   <toolbar class="toolbar-primary chromeclass-toolbar" id="msgToolbar" persist="collapsed" grippytooltiptext="&mailToolbar.tooltip;">
  1763.     <hbox id="toolbar_button_box">
  1764.       <toolbarbutton type="menu-button" id="button-getmsg" 
  1765.                      class="toolbarbutton-1"
  1766.                      label="&getMsgButton.label;"
  1767.                      sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
  1768.                      sortDirection="ascending"
  1769.                      tooltiptext="&getMsgButton.tooltip;" 
  1770.                      observes="button_getNewMessages" datasources="rdf:msgaccountmanager rdf:mailnewsfolders" 
  1771.                      oncommand="goDoCommand('cmd_getNewMessages')" 
  1772.                      containment="http://home.netscape.com/NC-rdf#child" 
  1773.                      ref="msgaccounts:/">
  1774.           <menupopup onpopupshowing="getMsgToolbarMenu_init()">
  1775.               <menuitem label="&getAllNewMsgCmd.label;" 
  1776.                         command="cmd_getMsgsForAuthAccounts"/>
  1777.               <menuseparator/>
  1778.           </menupopup>
  1779.           <template>
  1780.               <rule nc:IsServer="true" nc:CanGetMessages="true">
  1781.                   <menupopup>
  1782.                       <menuitem uri="..." 
  1783.                                 value="..." 
  1784.                                 label="rdf:http://home.netscape.com/NC-rdf#Name"
  1785.                                 oncommand="MsgGetMessagesForAccount(event);"/>
  1786.                   </menupopup>
  1787.               </rule>
  1788.           </template>
  1789.           <menupopup/>
  1790.       </toolbarbutton>
  1791.       <toolbarbutton id="button-newmsg" class="toolbarbutton-1" label="&newMsgButton.label;" tooltiptext="&newMsgButton.tooltip;" oncommand="MsgNewMessage(event)"/>
  1792.       <toolbarseparator class="toolbarseparator-primary"/>
  1793.       <toolbarbutton id="button-reply" class="toolbarbutton-1" label="&replyButton.label;" tooltiptext="&replyButton.tooltip;" observes="button_reply" oncommand="MsgReplyMessage(event)"/>
  1794.       <toolbarbutton class="toolbarbutton-1" id="button-replyall" label="&replyAllButton.label;" tooltiptext="&replyAllButton.tooltip;" observes="button_replyall" oncommand="MsgReplyToAllMessage(event)"/>
  1795.       <toolbarbutton class="toolbarbutton-1" id="button-forward" label="&forwardButton.label;" tooltiptext="&forwardButton.tooltip;" observes="button_forward" oncommand="MsgForwardMessage(event)"/>
  1796.       <toolbarseparator class="toolbarseparator-primary"/>
  1797.       <toolbarbutton type="menu" id="button-file" class="toolbarbutton-1" 
  1798.                   label="&fileButton.label;" observes="button_file"
  1799.                   datasources="rdf:null" 
  1800.                   tooltiptext="&fileButton.tooltip;"
  1801.                   sortResource="http://home.netscape.com/NC-rdf#FolderTreeName" sortDirection="ascending">
  1802.         <template> 
  1803.         <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  1804.           <menupopup>
  1805.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  1806.               <menupopup>
  1807.                 <menuitem label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;" disabled="true"/>
  1808.                 <menuseparator/>
  1809.               </menupopup>
  1810.             </menu>
  1811.           </menupopup>
  1812.         </rule> 
  1813.         <rule nc:NoSelect="true">
  1814.           <menupopup>
  1815.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  1816.           </menupopup>
  1817.         </rule>
  1818.           <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  1819.             <menupopup>
  1820.               <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  1821.                SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1822.                BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1823.                IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1824.                IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  1825.                ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  1826.                 <menupopup>
  1827.                   <menuitem label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;" 
  1828.                     oncommand="MsgMoveMessage(event.target.parentNode.parentNode)"/>
  1829.                   <menuseparator/>
  1830.                 </menupopup>
  1831.               </menu>
  1832.             </menupopup>
  1833.           </rule>
  1834.           <rule nc:CanFileMessagesOnServer="false">
  1835.             <!-- don't show servers (nntp & any others) which does not allow message filing -->
  1836.             <!-- File, Move & Copy menus -->
  1837.           </rule>
  1838.           <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  1839.           <!-- note, there is no "file here" -->
  1840.             <menupopup>
  1841.               <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  1842.                SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1843.                BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1844.                IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1845.                IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  1846.                ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  1847.                 <menupopup/>
  1848.               </menu>
  1849.             </menupopup>
  1850.           </rule>
  1851.           <rule nc:CanFileMessages="true">
  1852.             <menupopup>
  1853.               <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" oncommand="MsgMoveMessage(event.target)" 
  1854.                SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1855.                BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1856.                IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1857.                IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  1858.                ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  1859.             </menupopup>
  1860.           </rule>
  1861.         </template>
  1862.         <menupopup/>
  1863.       </toolbarbutton>
  1864.       <toolbarbutton class="toolbarbutton-1" id="button-next" label="&nextButton.label;" oncommand="goDoCommand('button_next')" tooltiptext="&nextButton.tooltip;" observes="button_next"/>
  1865.       
  1866.       <deck id="button-junk" observes="button_junk"
  1867.             oncommand="goDoCommand('button_junk')">
  1868.         <toolbarbutton class="toolbarbutton-1"
  1869.                  label="&junkButton.label;"
  1870.                  tooltiptext="&junkButton.tooltip;" 
  1871.                  observes="button_junk"/>
  1872.  
  1873.         <toolbarbutton class="toolbarbutton-1"
  1874.                  label="¬JunkButton.label;"
  1875.                  tooltiptext="¬JunkButton.tooltip;" 
  1876.                  observes="button_junk"/>
  1877.       </deck>
  1878.  
  1879.       <toolbarbutton class="toolbarbutton-1" id="button-delete" label="&deleteButton.label;" tooltiptext="&deleteButton.tooltip;" observes="button_delete" oncommand="goDoCommand('button_delete')"/> 
  1880.       <toolbarbutton type="menu-button" id="button-mark" class="toolbarbutton-1" label="&markButton.label;" hidden="true" oncommand="goDoCommand('button_mark')"
  1881.                   observes="button_mark" tooltiptext="&markButton.tooltip;">  
  1882.             <menupopup onpopupshowing="InitMessageMark()">
  1883.                 <menuitem type="checkbox" key="key_toggleRead" id="markReadToolbarItem" label="&markAsReadCmd.label;" accesskey="&markAsReadCmd.accesskey;" command="cmd_markAsRead" default="true" />
  1884.                 <menuitem label="&markThreadAsReadCmd.label;" key="key_markThreadAsRead" accesskey="&markThreadAsReadCmd.accesskey;" command="cmd_markThreadAsRead"/>
  1885.                 <menuitem label="&markReadByDateCmd.label;" key="key_markReadByDate" accesskey="&markReadByDateCmd.accesskey;" command="cmd_markReadByDate"/>
  1886.                 <menuitem label="&markAllReadCmd.label;" key="key_markAllRead" accesskey="&markAllReadCmd.accesskey;" command="cmd_markAllRead"/>
  1887.                 <menuseparator/>
  1888.                 <menuitem type="checkbox" id="markFlaggedToolbarItem" label="&markFlaggedCmd.label;" accesskey="&markFlaggedCmd.accesskey;" command="cmd_markAsFlagged"/>
  1889.             </menupopup>
  1890.       </toolbarbutton>
  1891.       <toolbarbutton id="button-print" type="menu-button" class="toolbarbutton-1" label="&printButton.label;"
  1892.                   observes="button_print" oncommand="goDoCommand('cmd_print')" tooltiptext="&printButton.tooltip;">  
  1893.         <menupopup id="printMenu" onpopupshowing="goUpdateCommand('cmd_printpreview');">
  1894.           <menuitem label="&printCmd.label;" accesskey="&printCmd.accesskey;" default="true"/>
  1895.           <menuitem id="printPreviewMenuItemToolbar" label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;" command="cmd_printpreview"/>
  1896.         </menupopup>
  1897.       </toolbarbutton>
  1898.       <toolbarbutton class="toolbarbutton-1" id="button-stop" label="&stopButton.label;" tooltiptext="&stopButton.tooltip;" command="cmd_stop"/>
  1899.       <spacer flex="1"/>
  1900.             <hbox id="throbber-box" align="center">
  1901.                 <button id="navigator-throbber" oncommand="goClickThrobber('messenger.throbber.url')" tooltiptext="&throbber.tooltip;"/>
  1902.             </hbox>
  1903.     </hbox>
  1904.   </toolbar>
  1905. </toolbox>
  1906.  
  1907. <toolbar id="msgLocationToolbar" collapsed="true" persist="collapsed" grippytooltiptext="&showLocationToolbarCmd.label;">
  1908.   <hbox align="center" context="folderPaneContext">
  1909.     <image id="locationIcon" class="folderMenuItem"/>
  1910.     <menulist id="locationFolders" class="folderMenuItem"
  1911.               label=" " crop="center">
  1912.       <menupopup id="locationPopup" height="400"
  1913.                  oncommand="OnLocationTreeSelect(this);"/>
  1914.     </menulist>
  1915.   </hbox>
  1916.  
  1917. <hbox id="searchBox" persist="collapsed" align="center" flex="1">
  1918.   <label id="searchCriteria" value="&SearchSubjectOrSender.label;" control="searchInput" 
  1919.          accesskey="&SearchSubjectOrSender.accesskey;"/>
  1920.   <textbox id="searchInput" flex="5" onfocus="this.select();" onclick="this.select();" oninput="onSearchInput(false);" onkeypress="onSearchKeyPress(event);"/>
  1921.   <button id="clearButton" label="&clearButton.label;" disabled="true" tooltiptext="&clearButton.tooltip;" oncommand="onClearSearch();" 
  1922.           accesskey="&clearButton.accesskey;"/>
  1923.   <button id="advancedButton" label="&advancedButton.label;" tooltiptext="&advancedButton.tooltip;" oncommand="onAdvancedSearch();"
  1924.           accesskey="&advancedButton.accesskey;"/>
  1925. </hbox>
  1926. </toolbar>
  1927.  
  1928. <!-- The msgNotificationBar appears on top of the message and displays 
  1929.      information like: junk, contains remote images, or is a suspected phishing URL 
  1930. -->
  1931. <deck id="msgNotificationBar" selectedIndex="0" collapsed="true">
  1932.   <hbox id="msgNotificationNoStatus"/>
  1933.  
  1934.   <hbox id="phishingBar" class="msgNotificationBar" align="center">
  1935.     <image id="phishingBarImage"/>
  1936.     <description flex="1" class="msgNotificationBarText">&phishingBarMessage.label;</description>
  1937.     <spacer flex="1"/>
  1938.     <button label="&removePhishingBarButton.label;" oncommand="MsgIsNotAScam();"/>
  1939.   </hbox>
  1940.  
  1941.   <hbox id="junkBar" class="msgNotificationBar" align="center">
  1942.     <image id="junkBarImage"/>
  1943.     <description flex="1" class="msgNotificationBarText">&junkBarMessage.label;</description>
  1944.     <spacer flex="1"/>
  1945.     <button label="&junkInfoButton.label;" oncommand="MsgJunkMailInfo(false)"/>
  1946.     <button label="&junkBarButton.label;" oncommand="JunkSelectedMessages(false);"/>
  1947.   </hbox>
  1948.  
  1949.   <hbox id="remoteContentBar" class="msgNotificationBar" align="center">
  1950.     <image id="remoteContentImage"/>
  1951.     <description flex="1" class="msgNotificationBarText">&remoteContentMessage.label;</description>
  1952.     <spacer flex="1"/>
  1953.     <button label="&loadRemoteContentButton.label;" oncommand="LoadMsgWithRemoteContent();"/>
  1954.   </hbox>
  1955. </deck>
  1956.  
  1957. <statusbar class="chromeclass-status" id="status-bar"> 
  1958.   <statusbarpanel id="component-bar"/>
  1959.   <statusbarpanel id="statusText" label="&statusText.label;" crop="right" flex="1"/>
  1960.   <statusbarpanel class="statusbarpanel-progress" id="progress-panel" hidden="true">
  1961.     <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
  1962.   </statusbarpanel>
  1963.   <statusbarpanel id="unreadMessageCount" hidden="true"/>
  1964.   <statusbarpanel id="totalMessageCount" hidden="true"/>
  1965.   <statusbarpanel checkfunc="MailCheckBeforeOfflineChange()" id="offline-status" class="statusbarpanel-iconic"/> 
  1966. </statusbar> 
  1967.  
  1968.  
  1969. </overlay>
  1970.